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

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

Open
vadimt2 opened this issue Dec 21, 2020 · 3 comments

Comments

@vadimt2
Copy link

vadimt2 commented Dec 21, 2020

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.`

@hinsencamp
Copy link

Issue still exists.

@OrangeCat3
Copy link

my error like this,env node v16 and npm v8
SyntaxError: C:\Users\15806\Downloads\xeokit-react-develop\xeokit-react-develop\src\Viewer.js: Unexpected token (203:8)

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

203 |


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

@fandipeng
Copy link

same error. Any update?

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

4 participants