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/gatsby doesn't support Gatsby 4 as a peer dependency #4107

Closed
1 task done
broksonic21 opened this issue Nov 1, 2021 · 1 comment · Fixed by #4120
Closed
1 task done

sentry/gatsby doesn't support Gatsby 4 as a peer dependency #4107

broksonic21 opened this issue Nov 1, 2021 · 1 comment · Fixed by #4120
Assignees
Labels
Package: gatsby Issues related to the Sentry Gatsby SDK

Comments

@broksonic21
Copy link

Package + Version

  • other: @sentry/gatsby

Version:

6.13.3

Description

@sentry/gatsby has a peer dependency on gatsby@"^2.0.0 || ^3.0.0" but ^4.0.0 is out

To repro, setup a package.json with just latest gatsby and @sentry/gatsby, using node 16 or later. Try npm install without running --force or --legacy-peer-deps; it errors with:

npm ERR! node_modules/gatsby
npm ERR!   gatsby@"^4.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer gatsby@"^2.0.0 || ^3.0.0" from @sentry/gatsby@6.13.3
npm ERR! node_modules/@sentry/gatsby
npm ERR!   @sentry/gatsby@"^6.13.3" from the root project```
@AbhiPrasad
Copy link
Member

Yup we should be supporting this. The longer term solution is to have integration tests similar to what we have for nextjs so we can check for breakage, but to unblock for now, @iker-barriocanal do you mind testing Gatsby v4 + the sdk to see if we can bump the peer dep?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: gatsby Issues related to the Sentry Gatsby SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants