MattDavis00 / lottie-svelte

https://www.npmjs.com/package/lottie-svelte
MIT License
9 stars 2 forks source link

First README example may have incorrect import #15

Closed MattDavis00 closed 1 year ago

MattDavis00 commented 1 year ago

It may have the incorrect import statement to the Lottie component. Needs investigation. Making this issue so I don't forget

MattDavis00 commented 1 year ago

Don't think Lottie is a default index.ts export anymore. May need adding back

MarilorV commented 1 year ago

Hello! Thank you for this package. In my js project, import worked with import { Lottie } from "lottie-svelte";

MattDavis00 commented 1 year ago

Hello! Thank you for this package. In my js project, import worked with import { Lottie } from "lottie-svelte";

Thank you for the confirmation. I thought this may be the case. Hope the package is working well for you otherwise. To fix this I will either update the documentation to match, or re-export the Lottie component as the default "lottie-svelte" index.ts export; probably the former.