Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If
npm install --save-dev "babel-core@^7.0.0-bridge.0"
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If
npm install --save-dev "babel-core@^7.0.0-bridge.0"
error: requires babel "^7.0.0-0", but was loaded with "6.26.3".
Looks like you need
to install babel-core as the docs
suggest: https://jestjs.io/docs/en/getting-started#using-babel
yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
error: requires babel "^7.0.0-0", but was loaded with "6.26.3". if you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. inspect the stack trace of this error to look
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 [email protected] --save-dev
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us