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

Module build failed: Error: Couldn't find preset "latest" relative to directory #2

Open
mariojankovic opened this issue Aug 15, 2017 · 6 comments

Comments

@mariojankovic
Copy link

mariojankovic commented Aug 15, 2017

First of all, thanks for doing this! I was having high hopes until it failed to initialize. I am using the default webpack-simple build from vue-cli and importing the plugin the suggested way doesn't work.

Any ideas?

@chenqingspring
Copy link
Owner

Thanks for your feedback!

Can you please provide a demo repo about your code?

@mbiemiller
Copy link

Removing .babelrc file fixed this error for me

@JamesWatton
Copy link

JamesWatton commented Oct 16, 2017

Same issue, removing .babelrc doesn't fix it for me, but removing the [latest] section from the babelrc file did.

@poorbug
Copy link

poorbug commented Nov 28, 2017

npm install --save-dev babel-preset-latest

.babelrc:

  "presets": [
    "latest"
  ],

It works.

@AnonymousArthur
Copy link

AnonymousArthur commented Dec 5, 2017

babel-preset-latest is already deprecated, please fix this package by using babel-preset-env.

@chenqingspring
Copy link
Owner

@ultran Thanks for reminding this 👍

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

No branches or pull requests

6 participants