You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was trying to checkout your library to use in a Next.js project.
However as Next uses SSR and "window" doesn't exist this package fails with:
ReferenceError: window is not defined
I looked through the code, and it seems that the only use window has is to bind to a global namespace?
Would you consider removing this code to make it compatible, or maybe putting a conditional around it to make sure it only binds when a window actually exists?
Thanks :)
The text was updated successfully, but these errors were encountered:
Hi,
Was trying to checkout your library to use in a Next.js project.
However as Next uses SSR and "window" doesn't exist this package fails with:
I looked through the code, and it seems that the only use
window
has is to bind to a global namespace?Would you consider removing this code to make it compatible, or maybe putting a conditional around it to make sure it only binds when a window actually exists?
Thanks :)
The text was updated successfully, but these errors were encountered: