mifi / react-lottie-player

Fully declarative React Lottie player
MIT License
505 stars 53 forks source link

in v1.3.2, need to use import.default #37

Closed mifi closed 3 years ago

mifi commented 3 years ago

Seems like the cloneDeep addition exposed an issue when using import(), where the imported object has a default property with the animationData.

https://github.com/mifi/react-lottie-player/issues/11#issuecomment-879310039

seems like the vue-lottie project has the same issue https://github.com/chenqingspring/vue-lottie/issues/20

mifi commented 3 years ago

This should be fixed in 1.3.3, so no longer need to use .default on imported json after that