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

[cloud-deploy-website-on-gke]: #41

Open
bigtime007 opened this issue Apr 11, 2022 · 0 comments
Open

[cloud-deploy-website-on-gke]: #41

bigtime007 opened this issue Apr 11, 2022 · 0 comments

Comments

@bigtime007
Copy link

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

[email protected] build:monolith
env-cmd -f .env.monolith react-scripts build

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:

  • /home/user/monolith-to-microservices/react-app/node_modules/eslint-plugin-flowtype/dist/utilities/getBuiltinRule.js
  • /home/user/monolith-to-microservices/react-app/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js
  • /home/user/monolith-to-microservices/react-app/node_modules/eslint-plugin-flowtype/dist/index.js
  • /home/user/monolith-to-microservices/react-app/node_modules/@eslint/eslintrc/dist/eslintrc.cjs

On Step "4" have user run: nvm install --lts prior to downloading the git package.

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

1 participant