vueuse / vue-demi

🎩 Creates Universal Library for Vue 2 & 3
MIT License
2.99k stars 158 forks source link

Conflicting peer dependency: vue@2.6.14 #174

Open MartinX3 opened 2 years ago

MartinX3 commented 2 years ago

Using vue 2.7 I can't install pinia, because of this issue. Probably because of https://github.com/vueuse/vue-demi/blob/dbe21e47cf3a695db145ef0af4d02db6eb533498/package.json#L40

npm ERR! Could not resolve dependency:
npm ERR! vue-demi@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vue@2.6.14
npm ERR! node_modules/vue
npm ERR!   peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.0
npm ERR!   node_modules/@vue/composition-api
npm ERR!     peerOptional @vue/composition-api@"^1.0.0-rc.1" from vue-demi@0.13.4
npm ERR!     node_modules/vue-demi
npm ERR!       vue-demi@"*" 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.

Also if I force install pinia it tells me at buildtime that the dep vue-demi is missing which I also need to force install.

antfu commented 2 years ago

I am not sure what we can do about it. If you do, PR welcome.