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

Uncaught Error: Module build failed: Error: Requires Babel "^7.0.0-0", but was loaded with "6.25.0" #427

Closed
maxttor opened this issue Sep 24, 2018 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@maxttor
Copy link

maxttor commented Sep 24, 2018

vue & vue-i18n version

2.4.2

Reproduction Link

https://github.com/kazupon/vue-i18n/tree/dev/examples/sfc

Steps to reproduce

npm install
npm run dev

What is Expected?

Run example

What is actually happening?

Uncaught Error: Module build failed: Error: Requires Babel "^7.0.0-0", but was loaded with "6.25.0". 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 for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

@samuelterra22
Copy link

@maxttor you need add @babel/core, babel-core and vue-i18n in package.json

Just run:
$ npm i @babel/core babel-core vue-i18n*

I had a similar bug that I saw how to fix it here and by now you just need to add the two packages in your project. It may be a bug that they will correct.

@kazupon kazupon added the help wanted Extra attention is needed label Oct 19, 2018
@kazupon kazupon added the good first issue Good for newcomers label Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants