Skip to content

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

@broksonic21

Description

@broksonic21

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/[email protected]
npm ERR! node_modules/@sentry/gatsby
npm ERR!   @sentry/gatsby@"^6.13.3" from the root project```

Metadata

Metadata

Labels

Package: gatsbyIssues related to the Sentry Gatsby SDK

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions