Laravel-mix: Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

Created on 21 Apr 2020  ·  23Comments  ·  Source: JeffreyWay/laravel-mix

  • 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

Most helpful comment

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

All 23 comments

👍

i add "@babel/compat-data": "^7.9.0", to package.json, delete package-lock.json and node_module files

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

This was fixed for me by running yarn upgrade laravel-mix. The newest version of laravel-mix requires a version of @babel/preset-env higher than 7.9, which is where this bug is fixed.

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared 👍

That bro, it solved my problems

Seems it's fixed.

我也遇到了这个问题 , 单单删除 node_modules 没有用, 还得删除 package-lock.json 文件才行

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

This one worked for me. Thanks bro

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

❤️

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

Thank you so much...

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...

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...

I've created an issue for that here and noted a workaround: https://github.com/instructure/canvas-lms/issues/1677

i add "@babel/compat-data": "^7.9.0", to package.json, delete package-lock.json and node_module files

I had this issue in Gatsby and this solved it for me.

Corrigi este problema com:
sudo npm update --depth 5 @babel/preset-env
Depois disso, ocorreu o mesmo erro com "@ babel / compat-data / corejs3-shipped-propostas". Executei
alguns comandos para ele também:
sudo npm update --depth 5 @babel/compat-data
Finalmente, todos os meus problemas desapareceram :)

Esse resolveu pra mim!

In my case, I resolved this issue by adding "@babel/preset-env": "7.9.0" to package.json file. Then, remove package-lock.json, re-run npm install.

This was fixed for me by running yarn upgrade laravel-mix. The newest version of laravel-mix requires a version of @babel/preset-env higher than 7.9, which is where this bug is fixed.

npm update laravel-mix for npm.

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared 👍

That bro, it solved my problems

thank you, it works for me.

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

works for me

I fixed this issue with:
sudo npm update --depth 5 @babel/preset-env
After 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-data
Finally, all my problems are disappeared :)

Thanks this works for me

this happen as I upgraded node from 12.4 to 12.9

In my case, I was using the wrong version of node for the project. Luckily we use NVM so I run nvm use and it worked. You might need to also install your node version. In my case it was nvm install v12.14.1

Node: v14.5.0

yarn add @babel/core babel-loader worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpmurray picture jpmurray  ·  3Comments

amin101 picture amin101  ·  3Comments

kpilard picture kpilard  ·  3Comments

Cheddam picture Cheddam  ·  3Comments

wendt88 picture wendt88  ·  3Comments