sentry-wizard icon indicating copy to clipboard operation
sentry-wizard copied to clipboard

The setup wizard fails when used with pnpm and workspaces

Open drazisil-codecov opened this issue 1 year ago • 11 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Create a monorepo with pnpm
  2. Run Sentry wizard
  3. 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

drazisil-codecov avatar Mar 22 '24 12:03 drazisil-codecov

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Mar 22 '24 12:03 getsantry[bot]

Routing to @getsentry/product-owners-projects-project-creation for triage ⏲️

getsantry[bot] avatar Mar 22 '24 20:03 getsantry[bot]

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 avatar Mar 26 '24 08:03 lforst

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 avatar Apr 21 '24 20:04 michael-ravelhq

@michael-ravelhq Did the wizard not ask you which package manager you are using?

lforst avatar Apr 22 '24 09:04 lforst

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: @.***>

michael-ravelhq avatar Apr 22 '24 11:04 michael-ravelhq