vue-lottie icon indicating copy to clipboard operation
vue-lottie copied to clipboard

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

Open mariojankovic opened this issue 8 years ago • 6 comments

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?

mariojankovic avatar Aug 15 '17 14:08 mariojankovic

Thanks for your feedback!

Can you please provide a demo repo about your code?

chenqingspring avatar Aug 17 '17 01:08 chenqingspring

Removing .babelrc file fixed this error for me

mbiemiller avatar Sep 08 '17 21:09 mbiemiller

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

JamesWatton avatar Oct 16 '17 15:10 JamesWatton

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

.babelrc:

  "presets": [
    "latest"
  ],

It works.

poorbug avatar Nov 28 '17 12:11 poorbug

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

AnonymousArthur avatar Dec 05 '17 23:12 AnonymousArthur

@ultraN Thanks for reminding this 👍

chenqingspring avatar Dec 06 '17 00:12 chenqingspring