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

Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' #2383

Closed
yamenarahman opened this issue Apr 21, 2020 · 32 comments · Fixed by #2384
Closed

Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' #2383

yamenarahman opened this issue Apr 21, 2020 · 32 comments · Fixed by #2384

Comments

@yamenarahman
Copy link
Contributor

  • 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

@yamenarahman
Copy link
Contributor Author

nodejs/node#32852

@RSickenberg
Copy link

👍

@oteroweb
Copy link

oteroweb commented Jun 2, 2020

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

@yunusemredilber
Copy link

yunusemredilber commented Jun 12, 2020

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 :)

erikos pushed a commit to endlessm/hack-web that referenced this issue Jun 16, 2020
This will fix the `yarn test` problem in the deployment because it's a
bug in the node >13.13:
laravel-mix/laravel-mix#2383

https://phabricator.endlessm.com/T29832
greatislander added a commit to inclusive-design/idrc that referenced this issue Jun 17, 2020
@AdrianMrn
Copy link

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.

@edumajority
Copy link

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

@yamenarahman
Copy link
Contributor Author

Seems it's fixed.

@PLQin
Copy link

PLQin commented Jun 26, 2020

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

@Tukale01
Copy link

Tukale01 commented Jul 1, 2020

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

@BOTKooper
Copy link

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 :)

❤️

@harshilparmar
Copy link

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

gillescj added a commit to gillescj/reddit-clone that referenced this issue Jul 16, 2020
Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Update @babel/preset-env and @babel/compat-data
More info: laravel-mix/laravel-mix#2383
@Juzepe
Copy link

Juzepe commented Sep 21, 2020

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.

@cutety
Copy link

cutety commented Sep 23, 2020

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.

@Saabbir
Copy link

Saabbir commented Oct 25, 2020

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

@calvin-puram
Copy link

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

teutat3s added a commit to greenbaum/jitsi-keycloak that referenced this issue Nov 18, 2020
'@babel/compat-data/corejs3-shipped-proposals'
See: laravel-mix/laravel-mix#2383
@ApolloTang
Copy link

this happen as I upgraded node from 12.4 to 12.9

@mukama
Copy link

mukama commented Mar 21, 2021

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

Mazuh added a commit to Mazuh/resource-toolkit that referenced this issue Mar 28, 2021
@abinhho
Copy link

abinhho commented May 5, 2021

Node: v14.5.0

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

@Mhdi-kr
Copy link

Mhdi-kr commented May 21, 2021

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!

@AndersDJohnson
Copy link

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

yarn upgrade --scope @babel

@emmanuelkamala
Copy link

This worked for me:

yarn upgrade --scope @babel

@developerkarthick
Copy link

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 :)

solved my problem, Thanks

@iam-zeshan
Copy link

iam-zeshan commented Dec 26, 2021

  • 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

I solved this issue by running a command "npm audit fix --force"

@iam-zeshan
Copy link

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

@ghost
Copy link

ghost commented Sep 7, 2022

Removing node_modules folder and clearing NPM cache worked for me:
rm -rf node_modules && npm cache clear --force && npm i

@marvfinsy
Copy link

$> sudo npm update --depth 5 @babel/preset-env
$> sudo npm update --depth 5 @babel/compat-data

thx man... worked for me...

@yoelvd
Copy link

yoelvd commented Dec 20, 2022

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 fixed my issue in 2022. Wow! kudos bro.

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

Successfully merging a pull request may close this issue.