Closed CamilaSolis closed 6 years ago
@CamilaSolis It is hard to investigate without looking through the code but FWIW, my guess is that a library that you are using doesn't support SSR (which is enabled in this setup). In other words, a library is probably trying to use window
object which doesn't exist on the server (only on the browser).
You can either disable SSR on this repo, or try commenting out libraries that you've added (like react-toolbox
) until it works. And then I'd recommend creating an issue on those libraries since the libraries should be checking for existence of the window
object before using it.
Hope it helps!
Hello again! I have a previous page made in React and I want to pass it to this pack for SEO issues, but I'm having a very recurring problem, the console says "window is not defined" and I found some small solutions to solve the problem, but also I get the same problem in several packages, for example 'react-toolbox / lib / font_icon' and I'm not supposed to modify them.
I sent one of the codes that has been causing me the most problems, thanks for the help and sorry for my bad English, I am using Google translator.