Skip to content
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

Not Compatible with JSX #205

Open
I2obiN opened this issue Oct 29, 2020 · 0 comments
Open

Not Compatible with JSX #205

I2obiN opened this issue Oct 29, 2020 · 0 comments

Comments

@I2obiN
Copy link

I2obiN commented Oct 29, 2020

Getting this error on npm install. Just putting this here for people getting the same error. Can't see any way to resolve this from my side.

SyntaxError: C:\Users\thhood\Projects\------\ui.frontend\node_modules\react-native-svg-uri\index.js: Support for the experimental syntax 'jsx' isn't currently enabled (168:14):

  166 |       }
  167 | 
> 168 |       return <Svg key={i} {...componentAtts}>{childs}</Svg>;
      |              ^
  169 |     case 'g':
  170 |       componentAtts = this.obtainComponentAtts(node, G_ATTS);
  171 |       return <G key={i} {...componentAtts}>{childs}</G>;

Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant