styled-components: [v4 beta] Server rendering not working
Environment

Reproduction
git clone https://github.com/vinpac/test-react-custom-cms-intl/tree/styled-v4
cd test-react-custom-cms-intl
yarn
yarn dev
Steps to reproduce
- Open localhost:3000
- See console. It will give you a
Prop 'className' did not match - Click on ‘vagas’. The search bar will not match with the first page.
Screenshots


This doesn’t happen on v3. You can check it the same repository on master branch.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 26 (22 by maintainers)
Commits related to this issue
- update hoist-non-react-statics you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems to be an inc... — committed to quantizor/next.js by quantizor 6 years ago
- update hoist-non-react-statics you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems to be an inc... — committed to quantizor/next.js by quantizor 6 years ago
- update hoist-non-react-statics you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems to be an inc... — committed to quantizor/next.js by quantizor 6 years ago
- update hoist-non-react-statics you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems to be an inc... — committed to quantizor/next.js by quantizor 6 years ago
- update hoist-non-react-statics (#5117) you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems t... — committed to vercel/next.js by quantizor 6 years ago
- update hoist-non-react-statics (#5116) you folks should really use semver ranges, but since greenkeeper is no longer running for this branch things have fallen behind in particular, there seems t... — committed to vercel/next.js by quantizor 6 years ago
Adding this made it go away:
Thank you for your help!
Going to leave this open until the PRs against next are merged
@probablyup Indeed, putting
"hoist-non-react-statics": "3.0.0"onresolutionssolves it.