LottieFiles / lottie-vue

Lottie player wrapper for Vue.js
https://github.com/lottiefiles/lottie-vue
112 stars 16 forks source link

Can't install with Yarn v3 (and probably v2 as well) #14

Closed ghost closed 2 years ago

ghost commented 2 years ago

When installing using Yarn 3, it fails with this error:

➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @lottiefiles/lottie-player@^1.04 isn't supported by any available resolver
    at pd.getResolverByDescriptor (C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:432:5658)
    at pd.bindDescriptor (C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:432:5047)
    at I (C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:441:6932)
    at async Promise.all (index 4)
    at async Promise.all (index 0)
    at async Ke.resolveEverything (C:\Users\XXXXXX\code\XXXXXX.yarn\releases\yarn-3.1.1.cjs:441:8197)
    at async C:\Users\XXXXXX\code\CRUX\crux-apex\.yarn\releases\yarn-3.1.1.cjs:444:2138
    at async Fe.startTimerPromise (C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:412:3730)
    at async Ke.install (C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:444:2077)
    at async C:\Users\XXXXXX\code\XXXXXX\.yarn\releases\yarn-3.1.1.cjs:449:122
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 87ms

It looks like the dependency on lottie-player 1.0.4 fails, either because that tag is missing from the repository (the only 1.0.x tag available is 1.0.0), or maybe because the version is "^1.04" when it should actually be "^1.0.4" (missing dot before the patch version)? I don't know why this works with NPM and Yarn Classic, but it does. Less strict dependency and semver code I would guess.