Skip to content

sentrySvelteKit in vite.config.ts does not upload sourcemaps #15227

@ktarmyshov

Description

@ktarmyshov

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

8.52.0

Framework Version

SvelteKit 2.16.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

vite.config.ts

  plugins: [
    sentrySvelteKit({
      adapter: 'auto',
      sourceMapsUploadOptions: {
        org: <org removed>,
        project: <project removed>,
        authToken: SENTRY_AUTH_TOKEN,
      }
    }),
    sveltekit(),
    purgeCss(),
    // Put the Sentry vite plugin after all other plugins
    // sentryVitePlugin({
    //   org: <org removed>,
    //   project: <project removed>,
    //   authToken: process.env.SENTRY_AUTH_TOKEN,
    // }),

Steps to Reproduce

added (see above) modifications to vite config.
If I use sentryVitePlugin - some uploading is happening at the end of build but BEFORE the adapter is executed
sentrySvelteKit has no effect and does nothing.

Expected Result

sentrySvelteKit plugin should upload sourcemaps.

Actual Result

Nothing seems to be uploaded

Metadata

Metadata

Assignees

Labels

BugPackage: sveltekitIssues related to the Sentry SvelteKit SDK

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions