Closed poornima-alugubelly closed 1 year ago
Have you tried loading the animationData as JSON instead of loading it from an URL? I think loading from an URL is not supported in v2.
@JoeyKerkdijk Hey yes that was exactly the issue , I tried with the JSON and it worked
When trying to use lottie-react with next js 13 , getting the following error:
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'length')
Steps to reproduce the behavior:
<Lottie animationData={ "https://assets6.lottiefiles.com/packages/lf20_k56tZILcig.json" } loop={true} />
The lottie is supposed to play but doesn't