和nextjs一起用报document is not defined #2379
Unanswered
yizhixiaotaozi
asked this question in
Q&A
Replies: 1 comment
-
const LoginForm = dynamic(() => import('./_components/LoginForm'),{ ssr: false }) 异步导入,禁止ssr可以。 有更好的办法么? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
和nextjs一起用报document is not defined。
尝试了把nextjs组件写成use client、异步加载组件、指定nextjs使用edge环境都不行。谁知道怎么弄不?
Beta Was this translation helpful? Give feedback.
All reactions