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
Fix ReferenceError: window is undefined
Server-Side-Rendering
#3446
Conversation
Pinging @probablyup directly, just in case he may be unsubscribed from other notifications in this repo. @probablyup, sorry for bothering 🙇. |
This is released in 5.2.3 |
is the same fix also needed here https://github.com/styled-components/styled-components/blob/legacy-v5/packages/styled-components/src/base.js#L41 to fix #3374 ? |
I don't thing so. That |
I have inherited a project that build same react code base and used to do SSR and client side rendering . It uses Parcel build which use https://github.com/styled-components/styled-components/blob/legacy-v5/packages/styled-components/src/base.js#L41 I tried Parcel build with Currently fixed to Thanks |
I have the same issue, in my case same code base is used for SSR and Client Rendering . |
fix #3444 by wrapping with
typeof window !== 'undefined'
Issues was introduced by v5.2.2
Edit:
Patch for 15b0796
Changed target branch to legacy-v5 (I hope that's the correct one..)