Closed h615861768 closed 1 year ago
Latest version of lottie (5.12.1) breaks imports
5.12.0 worked fine 5.12.1 results in:
error msg: lottie.loadAnimation is not a function.
i use import('lottie-web').then(lottie => { lottie.loadAnimation(...)}) can works on 5.12.0
import('lottie-web').then(lottie => { lottie.loadAnimation(...)})
in 5.12.1 import('lottie-web').then(lottie => { console.log(lottie)};
import('lottie-web').then(lottie => { console.log(lottie)};
console.log lottie root is only default, need use lottie.default.loadAnimation
default
I just published version 5.12.2 that should fix this. Can you let me know if it fixes it?
i try it in local, 5.12.2 is fixed 👍🏻
Latest version of lottie (5.12.1) breaks imports
5.12.0 worked fine 5.12.1 results in:
error msg: lottie.loadAnimation is not a function.
i use
import('lottie-web').then(lottie => { lottie.loadAnimation(...)})
can works on 5.12.0in 5.12.1
import('lottie-web').then(lottie => { console.log(lottie)};
console.log lottie root is only
default
, need use lottie.default.loadAnimation