Skip to content

@vue/[email protected] has a peer dependency conflict with Vue 3 #1535

Open
@Soviut

Description

@Soviut

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:

  1. Create a vue 3 project
  2. npm install @vue/[email protected]
  3. update with npm install @vue/[email protected]
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions