-
Notifications
You must be signed in to change notification settings - Fork 6
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
window is not defined on SSR with NextJS #167
Comments
Same issue for me, and I could not manage to propose a fix. |
Same issue with NextJS |
@kassemitani @fonzarely @gokhancelikkaya If anyone runs into this problem on nextjs, just make only this component render on client:
and then use it the same way:
|
I try it, it doesn't work on Next.js 14.2.3 |
Yes, I tried with
|
The component works fine but with an error when using with NextJS 13. It is because it tries to access window on SSR part. The error happens only when reloading the page and error is logged on the server side (not on browser console).
The text was updated successfully, but these errors were encountered: