Skip to content

sentry/gatsby doesn't support Gatsby 5 as a peer dependency #6261

@broksonic21

Description

@broksonic21

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/gatsby

SDK Version

7.20.1

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

Similar to #4107

Have a package.json with just gatsby and @sentry/gatsby - it fails to install with npm

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@sentry/gatsby": "^7.20.1",
    "gatsby": "^5.1.0"
  }
}

Expected Result

sentry/gatsby has Gatsby 5 as a supported peer dependency and installs clean

i.e. gatsby@"^2.0.0 || ^3.0.0 || ^4.0.0" becomes gatsby@"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"

Actual Result

npm WARN node_modules/gatsby
npm WARN   gatsby@"^5.1.0" from the root project
npm WARN   5 more (@sentry/gatsby, babel-plugin-remove-graphql-queries, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer gatsby@"^2.0.0 || ^3.0.0 || ^4.0.0" from @sentry/[email protected]
npm WARN node_modules/@sentry/gatsby
npm WARN   @sentry/gatsby@"^7.20.1" from the root project

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions