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
@ReactGirl It seems that you're mounting the component while window is undefined. I suppose that you're importing the component at a moment where window is undefined. It's just a supposition because I haven't access to it.
Be sure to be on client side when rendering component, and all will be right.
Tip : React componentDidMount or hook version useEffect(() => {}, []) , only fire on client side, try to play with it :)
steps to reproduce:
1: Create a Gatsby Project
2: Add react-snowstorm
3: "gatsby develop" work 100% fine.
However when it is deployed to gh-pages, during the process I get the following error:
Any suggestions?
The text was updated successfully, but these errors were encountered: