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
[2.2.0] window is not defined on server-side rendering #645
Comments
Seems like I might have spoken too soon, because the error persists when I downgrade to earlier versions. I really thought it was related to your latest realease because this was the first deploy I made since react-dnd was updated (not locked version in stage environment) and the stack trace pointed to it. Will investigate, sorry for the noise. |
Same problem on my side. Also investigating. |
@ninoperin ok, then I guess it's better to re-open this until something is confirmed. |
I see, the previous version was using a |
@GGAlanSmithee @ninoperin Can you try react-dnd-html5-backend@2.2.1? |
Works. Thanks for that quick fix! |
Yes, thank you very much @darthtrevino |
It looks like this issue has resurfaced in v7.0.0, perhaps: 572955b#diff-5177492c6e40a1abfcb33fc0dc4bc3c3R20 |
Just updated to v2.2.0 and am now getting
window is not defined
when doing server-side rendering.stack
in the realeases page I can see there were some updates which might affect ssr, namely
But the docs does not mention anything about it (as far as I can see), so not quite sure how to apply the new changes, if that's what's required for ssr to work.
The text was updated successfully, but these errors were encountered: