sentry-capacitor icon indicating copy to clipboard operation
sentry-capacitor copied to clipboard

Conflicting peer dependencies

Open OrbisK opened this issue 3 years ago • 4 comments

Steps to Reproduce

  1. npm i @sentry/vue @sentry/capacitor

Result

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @sentry/[email protected]
npm ERR! Found: @sentry/[email protected]
npm ERR! node_modules/@sentry/vue
npm ERR!   @sentry/vue@"^7.7.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @sentry/vue@"7.6.0" from @sentry/[email protected]
npm ERR! node_modules/@sentry/capacitor
npm ERR!   @sentry/capacitor@"^0.8.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @sentry/[email protected]
npm ERR! node_modules/@sentry/vue
npm ERR!   peerOptional @sentry/vue@"7.6.0" from @sentry/[email protected]
npm ERR!   node_modules/@sentry/capacitor
npm ERR!     @sentry/capacitor@"^0.8.0" 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 /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-07-[26](https://singular-code.de/futureself/future.self-app/-/jobs/15825#L26)T10_18_57_868Z-debug-0.log

OrbisK avatar Jul 26 '22 10:07 OrbisK

does it work if you specify the version of sentry/vue to 7.6.0?

lucas-zimerman avatar Jul 26 '22 12:07 lucas-zimerman

I have noticed that the problem does not occur with Node v16.x, but with the latest version.

OrbisK avatar Jul 26 '22 13:07 OrbisK

should work with sentry/[email protected], but @sentry/vue@"^7.7.0 is latest

OrbisK avatar Jul 26 '22 13:07 OrbisK

Hi, I just finished investigating and indeed there's a conflict with the latest versions with Yarn. I'll bump the version in order to solve this conflict, but ideally we shouldn't need to bump for version changes

lucas-zimerman avatar Aug 02 '22 12:08 lucas-zimerman

Closing since the dependency got updated.

lucas-zimerman avatar Sep 20 '22 12:09 lucas-zimerman