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
Running into an issue with Gatsby.js, "Window is not defined" #37
Comments
Hi there, I'm getting the same error and behaviour. I'm not too sure how to solve this issue as I'm new to the one page app business & components. Any solutions please? |
Gatsby is a Framework which implements Serverside rendering and such. This is only a guess, since I never used Gatsby I Will close this Issue, since this is related to: |
@and-who is correct. This is the method that worked for me: Install loadable:
|
@willmcl I'm getting this error any time I try to use this method Error in function hoistNonReactStatics in ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js:70 Any ides what this could mean / why this is happening? |
Was wondering if anyone else was running into this problem with Gatsby.js. I am getting a "Window is not defined error" when trying to build with p5 and react-p5-wrapper. It seems like the "window" is actually in the p5.js file. I can currently run in on the local server, just can't build the Gatsby app.
The text was updated successfully, but these errors were encountered: