Skip to content
New issue

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

在NextJS中使用抛出:ReferenceError: document is not defined #35

Closed
asynchat opened this issue Nov 26, 2024 · 2 comments · Fixed by #41
Closed

在NextJS中使用抛出:ReferenceError: document is not defined #35

asynchat opened this issue Nov 26, 2024 · 2 comments · Fixed by #41

Comments

@asynchat
Copy link

page.tsx 文件首行已经添加了: "use client",确定是在客户端渲染的。

@asynchat
Copy link
Author

已解决

@lvisei
Copy link
Member

lvisei commented Dec 1, 2024

fixed: #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants