You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to add Lottie to our nuxt 3 app today. First I have copied the instructions from the README. But when I run npm run dev I have received the following error.
[nuxt] error caught during app initialization TypeError: plugin.apply is not a function
To fix the issue I modified the code in the following way:
import * as LottiePlayer from "@lottiefiles/lottie-player";
// export default LottiePlayer <-- this doesnt seem to work
export default defineNuxtPlugin(() => LottiePlayer); // <-- this works
Now everything works as expected for me.
Wanted to share this since maybe some other folks may stumble upon this issue.
The text was updated successfully, but these errors were encountered:
Hello,
I have tried to add Lottie to our nuxt 3 app today. First I have copied the instructions from the README. But when I run
npm run dev
I have received the following error.To fix the issue I modified the code in the following way:
Now everything works as expected for me.
Wanted to share this since maybe some other folks may stumble upon this issue.
The text was updated successfully, but these errors were encountered: