Skip to content

dotlottie compatibility v1 vs v2 #313

Discussion options

You must be logged in to vote

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:

module.exports = function (api) {
    api.cache.never()
    const presets = ['@babel/preset-env']
    return { presets }
}

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!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mariocampacci
Comment options

Answer selected by theashraf
@theashraf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants