experimental syntax 'jsx' #5101
Unanswered
akuzmich-monosoft
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have problem with
node_modules/react-table/src/gatsby-theme-docz/components/Logo/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (4:3):
2 |
3 | export const Logo = () => (
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.
Beta Was this translation helpful? Give feedback.
All reactions