vueuse / sound

🔊 A Vue composable for playing sound effects
https://sound.vueuse.org
MIT License
463 stars 26 forks source link

I got error npm ERR! Conflicting peer dependency: vue@3.2.47 #36

Open superdiazzz opened 1 year ago

superdiazzz commented 1 year ago

This library seems useful for my project then I using Vue 3 Composition API which version is 3.2.31 and also Vite version 2.5.4. My Install got problem and return this error code:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: gundu@2.0.0
npm ERR! Found: vue@3.2.45
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 3.0.0 < 4" from @fortawesome/vue-fontawesome@3.0.2
npm ERR!   node_modules/@fortawesome/vue-fontawesome
npm ERR!     @fortawesome/vue-fontawesome@"^3.0.0-5" from the root project
npm ERR!   peer vue@"next" from @handsontable/vue3@12.3.0
npm ERR!   node_modules/@handsontable/vue3
npm ERR!     @handsontable/vue3@"^12.3.0" from the root project
npm ERR!   28 more (@highlightjs/vue-plugin, @kyvg/vue3-notification, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @vueuse/sound@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vue@3.2.47
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1
npm ERR!   node_modules/@vue/composition-api
npm ERR!     peerOptional @vue/composition-api@"^1.0.0-rc.1" from @vueuse/sound@2.0.1
npm ERR!     node_modules/@vueuse/sound
npm ERR!       @vueuse/sound@"*" from the root project
npm ERR! 
julapps@Juls-Air gundu % npm install @vueuse/sound
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: gundu@2.0.0
npm ERR! Found: vue@3.2.45
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 3.0.0 < 4" from @fortawesome/vue-fontawesome@3.0.2
npm ERR!   node_modules/@fortawesome/vue-fontawesome
npm ERR!     @fortawesome/vue-fontawesome@"^3.0.0-5" from the root project
npm ERR!   peer vue@"next" from @handsontable/vue3@12.3.0
npm ERR!   node_modules/@handsontable/vue3
npm ERR!     @handsontable/vue3@"^12.3.0" from the root project
npm ERR!   28 more (@highlightjs/vue-plugin, @kyvg/vue3-notification, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @vueuse/sound@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vue@3.2.47
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1
npm ERR!   node_modules/@vue/composition-api
npm ERR!     peerOptional @vue/composition-api@"^1.0.0-rc.1" from @vueuse/sound@2.0.1
npm ERR!     node_modules/@vueuse/sound
npm ERR!       @vueuse/sound@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/julapps/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/julapps/.npm/_logs/2023-04-15T01_58_25_131Z-debug-0.log

Anyone can Help?

bloor commented 1 year ago

Same issue.. I was looking forward to shift most 3rd party libraries to vueUse replacements. But this one , failed miserably on NPM install. I'll keep directly using HowlerJS ~_~

davidstackio commented 2 weeks ago

You can try adding this to your package.json:

"overrides": {
  "vue": "latest"
}