Open
Description
Describe the bug
I am using Vue 3 ([email protected]
) in my project. When upgrading to @vue/[email protected]
I got the following peer dependency error saying Vue 3 was causing a peer dependency conflict that expected Vue 2.
npm ERR! While resolving: [email protected]
npm ERR! Found: @vue/[email protected]
npm ERR! node_modules/@vue/apollo-composable
npm ERR! @vue/apollo-composable@"4.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @vue/apollo-composable@"4.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vue
npm ERR! peer vue@">= 2.5 < 2.7" from @vue/[email protected]
npm ERR! node_modules/@vue/composition-api
npm ERR! peerOptional @vue/composition-api@"^1.0.0" from @vue/[email protected]
npm ERR! node_modules/@vue/apollo-composable
npm ERR! @vue/apollo-composable@"4.0.1" from the root project
To Reproduce
Steps to reproduce the behavior:
- Create a vue 3 project
npm install @vue/[email protected]
- update with
npm install @vue/[email protected]
- See peer dependency error
Expected behavior
I should be able to update without conflicts with Vue 3 and without having to force the install.
Versions
vue: 3.4.18
vue-apollo: 4.0.1
@apollo/client: 3.8.1
Additional context
My workaround was to to use the --force
flag.
Metadata
Metadata
Assignees
Labels
No labels