Skip to content

npm install issue with peer dependencies for next 12 in @sentry/nextjs #4105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
MKrupauskas opened this issue Oct 30, 2021 · 2 comments
Closed
2 tasks done

Comments

@MKrupauskas
Copy link

Package + Version

  • @sentry/nextjs ^6.13.3
  • next 12.0.1

Version:

node -v                             
v14.16.1

npm -v       
7.18.1

Description

npm i with the new version of next (^12.0) is failing because of @sentry/nextjs because the defined valid peer dependencies for next do not include version 12, see full error below. To mitigate this I've created a PR to add next 12 to the valid peer deps list. This change will need a package version release. Note: the install works with npm i --legacy-peer-deps which ignores peer deps.

npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR!   next@"12.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.8 || ^11.0" from @sentry/[email protected]
npm ERR! node_modules/@sentry/nextjs
npm ERR!   @sentry/nextjs@"^6.13.3" 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 /home/x/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/x/.npm/_logs/2021-10-30T16_46_37_402Z-debug.log
@MKrupauskas
Copy link
Author

closed for duplication #4093

@mlnima
Copy link

mlnima commented Feb 10, 2022

npm install --legacy-peer-deps

MurazAslan added a commit to MurazAslan/solved_problems that referenced this issue May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants