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

ReferenceError: window is not defined in Next.JS #9

Open
TheBotlyNoob opened this issue Jul 10, 2021 · 3 comments
Open

ReferenceError: window is not defined in Next.JS #9

TheBotlyNoob opened this issue Jul 10, 2021 · 3 comments

Comments

@TheBotlyNoob
Copy link

Trying to use this in Next.JS throws ReferenceError: window is not defined.

Really like the look of this UI, so I hope this gets fixed soon.

Thanks in advance!

@el1s7
Copy link
Member

el1s7 commented Jul 13, 2021

Try installing the latest version (2.0.5)
I have added some checks before using the window object

If there is still an issue then you should follow this guide:
https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr

@TheBotlyNoob
Copy link
Author

Getting: ReferenceError: document is not defined, I will use the dynamic import until you push a fix.

@el1s7
Copy link
Member

el1s7 commented Jul 14, 2021

The issue seems to be from dependencies
So possibly https://github.com/maslianok/react-select-me and it's dependency -> https://github.com/bvaughn/react-virtualized

Try tracking down what is causing it and let me know

@el1s7 el1s7 closed this as completed Jul 14, 2021
@el1s7 el1s7 reopened this Jul 14, 2021
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

No branches or pull requests

2 participants