-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
6.0.0-canary.3 Styled JSX presets not applying #4159
Comments
Interesting, good catch! Feel free to check it out 👍 (I'll do it eventually) |
timneutkens
added
Type: Bug
good first issue
Easy to fix issues, good for newcomers
labels
Apr 16, 2018
Opened PR #4162 to address this issue. |
timneutkens
removed
good first issue
Easy to fix issues, good for newcomers
help wanted
labels
Apr 18, 2018
I got the same "Unfortunately nesting is not supported by styled-jsx." error when I upgraded to Next 6 canary. I figured out that I had to modify my .babelrc file.
and this is what I had to change it to for Next 6:
|
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For whatever reason, the latest canary with babel 7 isn't working well with styled jsx plugins via custom babelrc.
Expected Behavior
Expected to build the page and display in dev environment, instead spits error each build.
Current Behavior
Instead of building page, the following error is displayed.
Module build failed: Error: Nesting detected at 11:9. Unfortunately nesting is not supported by styled-jsx.
Steps to Reproduce (for bugs)
I can verify that the babel preset next/babel isn't receiving any custom options, so when the preset looks for the options, they aren't found.
https://github.com/zeit/next.js/blob/canary/server/build/babel/preset.js#L55
Context
Impossible to build pages currently.
Your Environment
The text was updated successfully, but these errors were encountered: