elementz
elementz copied to clipboard
`ReferenceError: window is not defined` in Next.JS
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!
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
Getting: ReferenceError: document is not defined, I will use the dynamic import until you push a fix.
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