Keep getting this error no matter what I tried installing (babel wise) as I follow other similar reports. this is the stack trace:
error: bundli
None of the solutions I found online worked, I fixed it the following way:
jest
and @babel/core
from package.json (keep babel-core
v7 bridge)I accidentally had a file called .babelrc
in my root directory with the following contents:
{
"presets": ["@babel/preset-env"]
}
After I deleted that file, I no longer got this error when running my gulp
command.
Sometimes, you have a local version, so remove it so that the global version is ran:
npm uninstall babel-cli
npm uninstall babel-core
Test which version you are running with cmd
babel -V
If it is not verion 7 or higher
npm uninstall babel-cli -g
npm uninstall babel-core -g
And
npm install @babel/cli -g
npm install @babel/core -g
If you are using Jest run
npm install babel-core@7.0.0-bridge.0 --save-dev
Uninstall and reinstall @babel/node solves the problem if you do node development.