sentry-wizard
sentry-wizard copied to clipboard
The setup wizard fails when used with pnpm and workspaces
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
- Create a monorepo with pnpm
- Run Sentry wizard
- Select pnpm
Expected Result
Sentry wizard is able to complete setup
Actual Result
pnpm add command fails due to missing -w flag to allow for top-level install
Product Area
Unknown
Link
No response
DSN
No response
Version
No response
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-projects-project-creation for triage ⏲️
Generally speaking, the wizard shouldn't be ran in the root of a workspace - I guess this is a docs issue we need to resolve.
Generally speaking, the wizard shouldn't be ran in the root of a workspace - I guess this is a docs issue we need to resolve.
@lforst - It doesn't only fail when running in the root of the project. I have a monorepo using turborepo. my node api server has dependencies in the workspace.
I am getting the following error:
│ Error: Command failed: npm add @sentry/esbuild-plugin
│ npm ERR! code EUNSUPPORTEDPROTOCOL
│ npm ERR! Unsupported URL Type "workspace:": workspace:*
This is probably caused by the wizard using npm instead of pnpm.
@michael-ravelhq Did the wizard not ask you which package manager you are using?
No. I ran it using pnpm dlx. On 22 Apr 2024, at 12:30, Luca Forstner @.***> wrote:
@michael-ravelhq Did the wizard not ask you which package manager you are using?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>