Skip to content

[Sveltekit] Strange behaviour of Source Maps #8294

Closed
@hrueger

Description

@hrueger

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

7.54.0

Framework Version

@sveltejs/kit@1.20.1

Link to Sentry event

https://dein-ticket-shop.sentry.io/issues/4231736390/?project=4505312390610944&referrer=project-issue-stream

SDK Setup

Sentry.init({
    dsn: "[redacted]",
    tracesSampleRate: 1.0,
});

Steps to Reproduce

I just caught an error in my Sveltekit Project. However, the filepath is wrong:
grafik

However, source maps are uploaded and seem to be working partly?
grafik

Sentry was configured just as in the documentation, with the plugin in vite.config.js. No special settings / config, whatsoever.

Expected Result

I see the correct filename in sentry.

Actual Result

Wrong filename (see above)
I also can't connect GitHub, which is currently not possible due to the wrong filename:

grafik

(obviously there are no built files in my GitHub Repo).

Thanks for your help!

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions