eclipsesource / jsonforms-react-seed

React-based JSON Forms Seed App
https://jsonforms-react-seed.netlify.app
134 stars 139 forks source link

fail to run demo, error message: Fail to compile, Module parse failed: Unexpected token #107

Closed wiekern closed 1 year ago

wiekern commented 1 year ago

step to reproduce:

  1. clone seed repo
  2. npm ci
  3. npm start

node: 16.18 OS: windows 11 Chrome 114.0.5735.199

image

sdirix commented 1 year ago

The error is weird because it typically occurs when Webpack <5 is used without adding the required Babel plugins which handles the modern Javascript syntax. However we are using the react-scripts v5 which also use Webpack v5 which can handle modern syntax out of the box.

I can't reproduce the issue.

wiekern commented 1 year ago
  1. forgot to give npm version that I am using is npm@9.7.2
  2. yes, I was using git clone https://github.com/eclipsesource/jsonforms-react-seed.git of master branch.
  3. I will give a try in a new folder.
wiekern commented 1 year ago

Thanks a lot, trying in a new folder, it works well. closed. The issue comes up while npm audit fix --force executed, since the webpack version is downgraded to

"name": "webpack",
"version": "4.19.1",