chenqingspring / vue-lottie

Render After Effects animations on Vue based on Bodymovin
MIT License
1.31k stars 281 forks source link

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

Open mariojankovic opened 7 years ago

mariojankovic commented 7 years ago

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 commented 7 years ago

Thanks for your feedback!

Can you please provide a demo repo about your code?

mbiemiller commented 7 years ago

Removing .babelrc file fixed this error for me

JamesWatton commented 7 years ago

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

poorbug commented 6 years ago

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

.babelrc:

  "presets": [
    "latest"
  ],

It works.

AnonymousArthur commented 6 years ago

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

chenqingspring commented 6 years ago

@ultraN Thanks for reminding this 👍