-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Support for styled-jsx #347
Comments
I tried to use styled-jsx module, but end up with this error upon the basic example provided at the repo.
Do i need to use a specific babel preset to get this working ? This is what i have put for babel config adding the plugin in package.json
|
@aga5tya I think you need to add a plugin or preset to support ES2015 modules because the |
in future |
@sergiodxa, doesn't next.js support es6 modules out of the box? |
@aga5tya |
@conor @sergiodxa, I just checked the default webpack config being used,, i see a babel transform runtime plugin,, is there another one that is required or is the order that is causing the issue? https://github.com/zeit/next.js/blob/master/server/build/webpack.js#L137 |
@aga5tya you can see the required babel plugin on the README for I guess it would require this line to be added |
@conor , sounds good,, thanks for pointing it. :) |
Hi!
styled-jsx look cool!
Would you plan to add this in next?
The text was updated successfully, but these errors were encountered: