Skip to content

Not Compatible with JSX #205

Description

@I2obiN

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions