Brutus
Brutus

Reputation: 163

Vue.js - Module not found: Error: Can't resolve 'lottie-vuejs'

I am trying to use lottie-vuejs in my project. I did the npm install and follow the guidance given here

https://www.npmjs.com/package/lottie-vuejs.

But I am getting

Module not found: Error: Can't resolve 'lottie-vuejs'.

Sample sandbox

Upvotes: 1

Views: 1701

Answers (2)

markcc
markcc

Reputation: 643

the lottie-vuejs require other dependencies which is lottie-web and axios. You might need to include it as well. But I would suggest you staright away use the "lottie-web" package. Here is the working example

https://codesandbox.io/s/funny-mendeleev-z0rkl?file=/src/components/HelloWorld.vue

Upvotes: 0

Boussadjra Brahim
Boussadjra Brahim

Reputation: 1

Try to downgrade to the 0.3.6 version by uninstalling the current one :

 npm uninstall --save lottie-vuejs

and install the stable version 0.3.6 as follows :

 npm install [email protected]

Upvotes: 3

Related Questions