bimspot / xeokit-react

Integratation of the xeokit viewer into a React application.
32 stars 22 forks source link

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

Open vadimt2 opened 3 years ago

vadimt2 commented 3 years ago

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 commented 2 years ago

Issue still exists.

OrangeCat3 commented 2 years ago

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 commented 2 years ago

same error. Any update?