chenqingspring / vue-lottie

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

<svg> attribute viewBox: Expected number, "0 0 undefined undefined" #56

Open saravanan101198 opened 3 years ago

saravanan101198 commented 3 years ago

Error: attribute viewBox: Expected number, "0 0 undefined undefi…". Error: attribute width: Expected length, "undefined". Error: attribute height: Expected length, "undefined". Error: attribute width: Expected length, "undefined". Error: attribute height: Expected length, "undefined".

I get the error above I'm not using react JS #20

var animData = bodymovin.loadAnimation({ container: document.getElementById('animate-a'), renderer: 'svg', loop: true, autoplay: true, path: '/images/json/data.json' });

Lottie js version 5.5.10

Any one help me.

darenjia commented 3 years ago

https://github.com/chenqingspring/vue-lottie/issues/31 照那位老哥的方法改一下就可以了