airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
30.42k stars 2.86k forks source link

Latest lottie 5.12.1 breaks named imports #2991

Open 719media opened 1 year ago

719media commented 1 year ago

Latest version of lottie (5.12.1) breaks imports

5.12.0 worked fine 5.12.1 results in:

Uncaught (in promise) SyntaxError: The requested module '/node_modules/.vite/deps/lottie-web.js?v=c531d267' does not provide an export named 'loadAnimation'

Seems like named exports got borked. Using import lottie from 'lottie-web' works, but import { loadAnimation } from 'lottie-web' no longer works.

benoitmugnier commented 1 year ago

Same here, not sure exactly what is the issue but on Angular side, the integration with the package ngx-lottie (https://github.com/ngx-lottie/ngx-lottie) seems to be broken.

bodymovin commented 1 year ago

I just published version 5.12.2 that should fix this. Can you try it?