dotlottie compatibility v1 vs v2 #313
-
Hi! I'm trying to use this really cool lib and I noticed that the v1 is compatible with vue2 while the v2 isn't, but i cannot understand why... Furthermore i haven't found nothing in the docs about compatibility stating that dotlottie v2 works only with vue3 and not with vue2. Am I using it incorrectly or are the compatibility assumptions I made correct? Thanks! Mario |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you, @mariocampacci. Could you please provide us with the error message you are facing when using the dotlottie-player.mjs module? |
Beta Was this translation helpful? Give feedback.
Sorry for this, found the problem.
I'm using webpack@4 that does not support optional chaining operator parsing while webpack@5 does.
For reference in case someone is facing the same issue, installing babel and it's config solved it:
Digging in the dotlottie repo environment I found: @lottiefiles/dotlottie-web
@theashraf even if it still a beta should I go for it? Or stick to the @dotlottie/player-component?
Seems like the two repo have the same goal, are you switching/reimplementing this repo to @LottieFiles?
Thank you!