Skip to content

Peer dependency resolution error when using @sentry/vue with Vue 2 #4748

@r-thomson

Description

@r-thomson

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/vue

SDK Version

6.19.0

Framework Version

6.19.0

Link to Sentry event

No response

Steps to Reproduce

Using NPM v7 and Node v14:

npm init --yes
npm install vue@2
npm install @sentry/vue

Expected Result

@sentry/vue should be installed successfully.

Actual Result

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR!   vue@"^2.6.14" from the root project
npm ERR!   peer vue@"2.x || 3.x" from @sentry/[email protected]
npm ERR!   node_modules/@sentry/vue
npm ERR!     @sentry/vue@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.2.0" from [email protected]
npm ERR! node_modules/vue-router
npm ERR!   peer vue-router@"3.x || 4.x" from @sentry/[email protected]
npm ERR!   node_modules/@sentry/vue
npm ERR!     @sentry/vue@"*" 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: vueIssues related to the Sentry Vue SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions