You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating an optimized production build...
(node:1842) Warning: require() of ES modules is not supported.
require() of /home/user/monolith-to-microservices/react-app/node_modules/@eslint/eslintrc/universal.js from /home/user/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/user/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:
https://codelabs.developers.google.com/codelabs/cloud-deploy-website-on-gke#8
9. Make changes to the website
cd ~/monolith-to-microservices/react-app/src/pages/Home
mv index.js.new index.js
cat ~/monolith-to-microservices/react-app/src/pages/Home/index.js
cd ~/monolith-to-microservices/react-app
npm run build:monolith
Issue:
user@cloudshell:~/monolith-to-microservices/react-app (user-lab$ npm run build:monolith
Creating an optimized production build...
(node:1842) Warning: require() of ES modules is not supported.
require() of /home/user/monolith-to-microservices/react-app/node_modules/@eslint/eslintrc/universal.js from /home/user/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/user/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:
On Step "4" have user run: nvm install --lts prior to downloading the git package.
The text was updated successfully, but these errors were encountered: