-
Notifications
You must be signed in to change notification settings - Fork 7
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 #2
Comments
Alright I was finally able to revisit this issue and seem to have got a fix in place. I opened a PR but in case this repo is not managed I will supply my solution here as well. What I did was just fork the repo and then pull the code from it and create my own I then edited the first line of the util.js to be this instead: That really is all there was to it. I did also convert it to a React functional component and did the export differently. I am not sure if that is necessary or not, so if it still gives you issues or doesn't work at all you may want to try that. Hopefully this helps someone out there! |
hi @nickyoung87 , sorry for the long answer, unfortunately, at the moment I do not support this project, copying and correcting the code was a great solution, thank you |
I started getting this error when I refresh the page:
This is a next implementation and this is when running locally (haven't tested in a production environment) and it only happens when I do a hard refresh of the page. If I navigate to the page it works fine.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: