Skip to content
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

Using gatsby-plugin-react-next + styled-components will break style in production #4774

Closed
rockmandash opened this issue Mar 30, 2018 · 4 comments

Comments

@rockmandash
Copy link

rockmandash commented Mar 30, 2018

Thanks for the wonderful tool.
I've noticed that using gatsby-plugin-react-next + styled-components will break style in production.
This happens with or without using Fragment I think.
The build stylesheet class name shifted, causing a weird result.

@m-allanson
Copy link
Contributor

The styled components plugin was recently updated to support using the babel plugin babel-plugin-styled-components for server side rendering (see #4722), does using that fix your issue?

Also see the discussion at #3067

@rockmandash
Copy link
Author

@m-allanson Nope, I tried today.
The problem still the same.

@rockmandash
Copy link
Author

I think the babel plugin is adding the name to hash style name.

@KyleAMathews
Copy link
Contributor

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants