-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
styled-jsx messed up when using .babelrc on root and using next on a subfolder #743
Comments
@mattecapu I guess this is because of the .babelrc fallback. Can you how the |
it's all in the repo |
@mattecapu oh sorry, I totally missed that <3 |
nothin on this? how can I fix? |
That seems like a weird bug. Let's see. |
@nkzawa any pointers? |
Research Notes. Check these two gists: https://gist.github.com/arunoda/2307c8f6535a794185726ac8d5297bf1 |
It's a weird issue I managed to downsize to this minimal use case.
Clone the repo and then run
and go to
localhost:3000
.Expected behaviour: render a green, a red and a purple line of text.
Observed behaviour: renders 3 lines of green text.
It appears to be caused by running
next
inside a subdirectory, where it doesn't find a.babelrc
file. Indeed, a temporary fix is to add a copy of your root.babelrc
in the subdirectory as well.The only effect seems to be messing up with styled-jsx encapsulation (confusing children and parent styles). Everything else is transpiled correctly.
The text was updated successfully, but these errors were encountered: