Closed chivincent closed 2 years ago
@ChiVincent Can you run nvm install --lts
to make sure you are using the latest version of NodeJS? The dependencies were recently updated and this is required. There should have been a message displayed after you ran ./setup.sh
in the beginning of the lab.
got similar error. react won't build. error:
npm run build:monolith
frontend@0.1.0 build:monolith env-cmd -f .env.monolith react-scripts build
Creating an optimized production build... (node:1913) Warning: require() of ES modules is not supported. require() of /home/julieboss/monolith-to-microservices/react-app/node_modules/@eslint/eslintrc/universal.js from /home/julieboss/monolith-to-microservices/react-app/node_modules/eslint/lib/linter/linter.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename universal.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/julieboss/monolith-to-microservices/react-app/node_modules/@eslint/eslintrc/package.json. Failed to compile.
Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk' Require stack:
Issue seems to be with not setting NodeJS version using nvm install --lts
. Updated README.
In GSP662, it failed to execute
npm install && npm run-script build
.