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

Most upvoted comments

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

That bro, it solved my problems

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 😃

❤️

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 😃

works for me

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

Ran into similar problem, this seemed to solve for me:

yarn upgrade --scope @babel

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.

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…

Run this Command “npm audit fix --force” to solve this issue!

This worked for me:

yarn upgrade --scope @babel

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