Skip to content
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

Sentry/nextjs with [email protected] #7125

Closed
3 tasks done
ElSeniorMikael opened this issue Feb 9, 2023 · 1 comment
Closed
3 tasks done

Sentry/nextjs with [email protected] #7125

ElSeniorMikael opened this issue Feb 9, 2023 · 1 comment

Comments

@ElSeniorMikael
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/nextjs

SDK Version

7.3.7

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

npm i [email protected]
npm i @sentry/nextjs@latest

Expected Result

To install node_module

Actual Result

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@"^13.1.7-canary.8" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.8 || ^11.0 || ^12.0 || ^13.0" from @sentry/[email protected]
npm ERR! node_modules/@sentry/nextjs
npm ERR! @sentry/nextjs@"7.37.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.

@lforst
Copy link
Member

lforst commented Feb 10, 2023

Hi, unfortunately, this is a weird behavior of npm we can't really fix on our end without getting rid of the peerDependency. We defined the peer dependency with ^13 which is accurate but npm apparently doesn't resolve this to prereleases as outlined here.

Since this should work with non-canary versions of Next.js I recommend you simply use --force while you're testing the canary release. (Or you switch to yarn or pnpm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants