laravel-mix: Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
- Laravel Mix Version: 5.0.4
- Node Version: 13.13.0
- NPM Version: 6.14.4
- OS: macOS 10.15.4
I think this is related to a breaking change in node version 13.13 which conflicts with babel <= 7.9
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 12
- Comments: 32 (2 by maintainers)
Commits related to this issue
- CI: Use node-12 (LTS) docker image This will fix the `yarn test` problem in the deployment because it's a bug in the node >13.13: https://github.com/JeffreyWay/laravel-mix/issues/2383 https://phabri... — committed to endlessm/hack-web by danigm 4 years ago
- CI: Use node-12 (LTS) docker image This will fix the `yarn test` problem in the deployment because it's a bug in the node >13.13: https://github.com/JeffreyWay/laravel-mix/issues/2383 https://phabri... — committed to endlessm/hack-web by danigm 4 years ago
- chore(deps-dev): resolve build error See: https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to inclusive-design/idrc by greatislander 4 years ago
- fix: upgrade @babel/preset-env for testing refs: https://github.com/JeffreyWay/laravel-mix/issues/2383#issuecomment-643265068 — committed to tinajs/mina-webpack by imyelo 4 years ago
- fix: upgrade @babel/preset-env for testing refs: https://github.com/JeffreyWay/laravel-mix/issues/2383#issuecomment-643265068 — committed to tinajs/mina-webpack by imyelo 4 years ago
- upgrade babel compat data version https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to LeversonCarlos/FriendlyCashFlow by LeversonCarlos 4 years ago
- Fix Babel Error Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' Update @babel/preset-env and @babel/compat-data More info: https://github.com/JeffreyWay/laravel-mix/issues/238... — committed to gillescj/reddit-clone by gillescj 4 years ago
- Fix can not find corejs3-shipped-proposals Errot info: Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals Not clean which one is really realated, tried all bwlow: 1, npm update ... — committed to axinging/WebGPUComputeExample by axinging 4 years ago
- Force Node 10 in Dockerfile There's build issues in Node 12+: ``` Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' ``` Here's one of many examples of a similar issue if the a... — committed to geotrellis/geotrellis-docs by CloudNiner 4 years ago
- Force Node 10 in Dockerfile (#7) There's build issues in Node 12+: ``` Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' ``` Here's one of many examples of a similar issu... — committed to geotrellis/geotrellis-docs by CloudNiner 4 years ago
- Update package lock to fix build error https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to primer/octicons by colebemis 4 years ago
- Fix issue with latest `laravel-mix` - Added `"@babel/preset-env": "^7.9.0"` to dev dependencies to address npm build error "Cannot find module '@babel/compat-data/corejs3-shipped-proposals'". More in... — committed to tighten/ozzie by jakebathman 4 years ago
- Fix issue https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to weisk/covid-19-site-template by weisk 4 years ago
- Fix cannot find module error for '@babel/compat-data/corejs3-shipped-proposals' See: https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to greenbaum/jitsi-keycloak by teutat3s 4 years ago
- chore(deps): update deep deps related to https://github.com/JeffreyWay/laravel-mix/issues/2383 — committed to Mazuh/resource-toolkit by Mazuh 3 years ago
I fixed this issue with:
sudo npm update --depth 5 @babel/preset-envAfter then, same error occurred with “@babel/compat-data/corejs3-shipped-proposals” I ran some command for it too:sudo npm update --depth 5 @babel/compat-dataFinally, all my problems are disappeared 😃i add “@babel/compat-data”: “^7.9.0”, to package.json, delete package-lock.json and node_module files
That bro, it solved my problems
This was fixed for me by running
yarn upgrade laravel-mix. The newest version oflaravel-mixrequires a version of@babel/preset-envhigher than 7.9, which is where this bug is fixed.❤️
This one worked for me. Thanks bro
works for me
我也遇到了这个问题 , 单单删除 node_modules 没有用, 还得删除 package-lock.json 文件才行
Ran into similar problem, this seemed to solve for me:
In my case, I resolved this issue by adding
"@babel/preset-env": "7.9.0"topackage.jsonfile. Then, removepackage-lock.json, re-runnpm install.Thank you so much…
Run this Command “npm audit fix --force” to solve this issue!
This worked for me:
yarn upgrade --scope @babel
Thank you bro, the day is saved!
this happen as I upgraded node from 12.4 to 12.9
I have the same issue by trying to install Canvas LMS. The error appears when I run ‘yarn install’, and I can’t find a solution…
https://github.com/nodejs/node/issues/32852