Skip to content

@sentry-cli not working with @sentry/vite-plugin when installed with bun #412

@shapeshifta78

Description

@shapeshifta78

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.57.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

Sentry.onLoad(() => {
  Sentry.init({
    enabled: import.meta.env.PROD,
    dsn,
    release,
  
  });
});

Steps to Reproduce

Install @sentry-cli and @sentry/vite-plugin with bun and try to run it. Works fine when installed with npm ci, but does not work with bun.

Expected Result

Sourcemaps get generated and uploaded to sentry.

Actual Result

Error: spawn /Users/xxx/Projects/xxx/node_modules/@sentry/cli/sentry-cli ENOENT

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions