" Support for the experimental syntax 'jsx' isn't currently enabled" while trying to move from babel to swc for my NextJS project #7947
Replies: 1 comment
-
This should go next.js question with your next.config.js. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to move from babel to swc for my NextJS (13) project and keep getting - Support for the experimental syntax 'jsx' isn't currently enabled .Add @babel/preset-react (https://github.com/babel/babel/tree/main/packages/babel-preset-react) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx) to the 'plugins' section to enable parsing. How can I achieve this using swc?
Beta Was this translation helpful? Give feedback.
All reactions