We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lottie-web
2.75.0
ReferenceError: document is not defined at (ssr)/./node_modules/.pnpm/[email protected]/node_modules/lottie-web/build/player/lottie.js (.next/server/vendor-chunks/[email protected]:19:1) at webpack_require (.next/server/webpack-runtime.js:33:43) at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected]/node_modules/@douyinfe/semi-foundation/lib/es/lottie/foundation.js (.next/server/vendor-chunks/@DouyinFE+semi-foundation@[email protected]:1130:1) at webpack_require (.next/server/webpack-runtime.js:33:43) at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected][email protected][email protected][email protected]/node_modules/@douyinfe/semi-ui/lib/es/lottie/index.js (.next/server/vendor-chunks/@DouyinFE[email protected][email protected][email protected]_react@[email protected]:1420:1) at webpack_require (.next/server/webpack-runtime.js:33:43) at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected][email protected][email protected][email protected]/node_modules/@douyinfe/semi-ui/lib/es/index.js (.next/server/vendor-chunks/@DouyinFE[email protected][email protected][email protected]_react@[email protected]:1260:1) at webpack_require (.next/server/webpack-runtime.js:33:43)
No response
- OS: - browser:
The text was updated successfully, but these errors were encountered:
该问题是由于在ssr过程中使用了lottie-web,该包的自执行函数使用了document变量。 目前这个问题已经在跟进中,预计下周可以提交PR,review后就会合入分支。
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Which Component
lottie-web
Semi Version
2.75.0
Current Behavior
ReferenceError: document is not defined
at (ssr)/./node_modules/.pnpm/[email protected]/node_modules/lottie-web/build/player/lottie.js (.next/server/vendor-chunks/[email protected]:19:1)
at webpack_require (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected]/node_modules/@douyinfe/semi-foundation/lib/es/lottie/foundation.js (.next/server/vendor-chunks/@DouyinFE+semi-foundation@[email protected]:1130:1)
at webpack_require (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected][email protected][email protected][email protected]/node_modules/@douyinfe/semi-ui/lib/es/lottie/index.js (.next/server/vendor-chunks/@DouyinFE[email protected][email protected][email protected]_react@[email protected]:1420:1)
at webpack_require (.next/server/webpack-runtime.js:33:43)
at (ssr)/./node_modules/.pnpm/@DouyinFE[email protected][email protected][email protected][email protected][email protected]/node_modules/@douyinfe/semi-ui/lib/es/index.js (.next/server/vendor-chunks/@DouyinFE[email protected][email protected][email protected]_react@[email protected]:1260:1)
at webpack_require (.next/server/webpack-runtime.js:33:43)
Expected Behavior
No response
Steps To Reproduce
No response
ReproducibleCode
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: