chenqingspring/vue-lottie

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

Opened this issue · 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?

Thanks for your feedback!

Can you please provide a demo repo about your code?

Removing .babelrc file fixed this error for me

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

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

.babelrc:

  "presets": [
    "latest"
  ],

It works.

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

@ultran Thanks for reminding this 👍