Skip to content

@sentry/wizard & pnpm catalog #1116

@jycouet

Description

@jycouet

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Have a project with pnpm catalog.

And in my package.json I have

devDependencies: {
  ...
  "@sveltejs/kit": "catalog:sveltekit"
  ...
}

And launch: npx @sentry/wizard@latest -i sveltekit

Expected Result

First level: say something like version catalog:sveltekit not supported.

Second level: handle the check in pnpm-workspace.yaml to find the version used

Actual Result

Need to install the following packages:
@sentry/wizard@6.6.1
Ok to proceed? (y)

┌ Sentry SvelteKit Wizard

◇ ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ The Sentry SvelteKit Wizard will help you set up Sentry for your application. │
│ Thank you for using Sentry :) │
│ │
│ Version: 6.6.1 │
│ │
│ This wizard sends telemetry data and crash reports to Sentry. This helps us improve the Wizard. │
│ You can turn this off at any time by running sentry-wizard --disable-telemetry. │
│ │
├───────────────────────────────────────────────────────────────────────────────────────────────────╯
/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/comparator.js:41
throw new TypeError(Invalid comparator: ${comp})
^

TypeError: Invalid comparator: catalog:sveltekit
at Comparator.parse (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/comparator.js:41:13)
at new Comparator (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/comparator.js:25:10)
at /home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/range.js:154:47
at Array.map ()
at Range.parseRange (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/range.js:154:35)
at /home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/range.js:42:22
at Array.map ()
at new Range (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/classes/range.js:42:8)
at minVersion (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/semver/ranges/min-version.js:8:11)
at getKitVersionBucket (/home/jycouet/.npm/_npx/ddb126e78325956c/node_modules/@sentry/wizard/dist/src/sveltekit/utils.js:9:44)

Product Area

Projects - Project Creation

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions