When i change styles in css prop and reload page i get error "Warning: Prop className did not match.". In head style section i see two same styles (old and new). Problem only on client side.
Steps to reproduce the behavior, please provide code snippets or a repository:
Console without error about className

On screenshot we can see 3 classes in style tag, but in code we have only 2.
I also updated packages to latest versions.
Git repo with bug: https://github.com/dmitweb/with-styled-components-app-bug
The babel plugin configuration in .babelrc is missing the { "ssr": true } setting. I've created a PR to fix this in the example. Read more here: https://www.styled-components.com/docs/tooling#serverside-rendering
@ztanner @timneutkens issue still didn't solved. I have already tried this before submit issue. Please check again. Error still exists.
Steps to reproduce the behavior:
css={'padding: 20px;'} to <Title>Sorry, you're right - I misread the docs, as SSR is actually enabled by default. I'll keep looking at this.
Hey @timneutkens, can you please reopen issue, maybe somebody will help with error
Having the same issue. Would this apply to NextJS?
Note
鈿狅笍 The plugin call order in your .babelrc file matters. If you're using the env property in your babel configuration, then putting this plugin into the plugins array won't suffice. Instead it needs to be put into each env's plugins array to maintain it being executed first. See this for more information.
@kusold it dosn't help, u can use emotion as workaround, same func without issue
Most helpful comment
Hey @timneutkens, can you please reopen issue, maybe somebody will help with error