-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The setup wizard fails when used with pnpm and workspaces #553
Comments
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. |
@lforst - It doesn't only fail when running in the root of the project. I am getting the following error:
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: ***@***.***>
|
@michael-ravelhq the wizard looks at lock files to determine which package manager to use. Any chance that you have a @andrewchen30 can you re-run the wizard with the |
Oh I see. But yeah it's probably the same cause. Did you run the wizard in the root of your monorepo or in the package where the SDK should be installed? We generally recommend running it in the project directory. |
No, I runned it on the project-directory level. I am also wondering why it happened, might be some pnpm setupj confused the wizard. |
@andrewchen30 @michael-ravelhq We have just released a new version of the wizard that will be a bit more sensible in workspace roots and also emit a log file when the installation command goes wrong. Feel free to try it out, and if it continues failing it would be cool if you could share the logfile with us. Thanks! |
Sorry, didn't mean to kick it back, I was pinging myself a reminder. |
Just tested, it's fixed!!! Thanks a lot! |
@andrewchen30 awesome, thanks for checking, closing this issue then. If there continue to be problems with this issue let us know. |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
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 installProduct Area
Unknown
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: