Skip to content

Support for the experimental syntax 'jsx' isn't currently enabled (204:9): #21

@vadimt2

Description

@vadimt2

as soon as i run the project
`../src/Viewer.js
SyntaxError: C:\Users\vadim\OneDrive\Desktop\sinfo-react\xeokit-react\src\Viewer.js: Support for the experimental syntax 'jsx' isn't currently enabled (204:9):

202 | } = this.props;
203 | return (

204 |


| ^
205 | <canvas
206 | id={canvasID}
207 | width={width}

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions