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

yarn start fails when running Node v12.18 #412

Closed
kevinold opened this issue Jun 11, 2020 · 1 comment · Fixed by #413
Closed

yarn start fails when running Node v12.18 #412

kevinold opened this issue Jun 11, 2020 · 1 comment · Fixed by #413
Assignees
Labels
bug Something isn't working

Comments

@kevinold
Copy link
Contributor

Problem

Running the app against Node v12.18 fails with

./src/svgs/undraw_personal_finance_tqcd.svg (./node_modules/@svgr/webpack/lib?-svgo,+titleProp,+ref!./src/svgs/undraw_personal_finance_tqcd.svg)
Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

➜  cypress-realworld-app git:✗ yarn start
yarn run v1.22.4
$ yarn db:seed:dev
$ cp data/database-seed.json data/database.json
$ NODE_ENV=development concurrently yarn:start:react yarn:start:api
$ react-scripts -r @cypress/instrument-cra start
$ yarn tsnode --files backend/app.ts
$ nyc --silent ts-node -O '{"isolatedModules": false, "module": "commonjs" }' --files backend/app.ts
[start:react] ℹ 「wds」: Project is running at http://192.168.1.228/
[start:react] ℹ 「wds」: webpack output is served from
[start:react] ℹ 「wds」: Content not from webpack is served from /Users/kevinold/cypress-repos/cypress-realworld-app/public
[start:react] ℹ 「wds」: 404s will fallback to /
[start:react] Starting the development server...
[start:react]
[start:api] express-validator: sanitize(), sanitizeBody() and other sanitization-only middlewares have been deprecated.
[start:api] Please use check(), body() and others instead, which must offer the same API, and more.
[start:react] Failed to compile.
[start:react]
[start:react] ./src/svgs/rwa-logo.svg (./node_modules/@svgr/webpack/lib?-svgo,+titleProp,+ref!./src/svgs/rwa-logo.svg)
[start:react] Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
[start:react] Require stack:
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/@svgr/webpack/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/@svgr/webpack/node_modules/@babel/preset-env/lib/index.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/@svgr/webpack/lib/index.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/loader-runner/lib/loadLoader.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/loader-runner/lib/LoaderRunner.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/webpack/lib/NormalModule.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/webpack/lib/NormalModuleFactory.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/webpack/lib/Compiler.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/webpack/lib/webpack.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/react-scripts/config/webpack.config.js
[start:react] - /Users/kevinold/cypress-repos/cypress-realworld-app/node_modules/@cypress/instrument-cra/index.js
[start:react] - internal/preload

Solution

Run project using Node v12.16 until a fix is secured.

@kevinold kevinold self-assigned this Jun 11, 2020
@kevinold kevinold added the bug Something isn't working label Jun 11, 2020
@kevinold
Copy link
Contributor Author

Related to babel/babel#11292

amirrustam pushed a commit that referenced this issue Jun 12, 2020
* fix: refresh yarn.lock to fix node 12.18 issue #412

* fix: pin express dependencies using yarn resolutions
obaidaattaee pushed a commit to obaidaattaee/cypress-realworld-app that referenced this issue Nov 30, 2021
* fix: refresh yarn.lock to fix node 12.18 issue cypress-io#412

* fix: pin express dependencies using yarn resolutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant