Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
"version": "9.15.0",
Framework Version
sveltekit "version": "2.20.8",
Link to Sentry event
Reproduction Example/SDK Setup
Dear Sentry Team,
I am using this adapter (https://github.com/kt-npm-modules/svelte-adapter-azure-swa) which I updated specifically to address this issue (sveltejs/kit#10040). The app itself is here https://github.com/kt-npm-modules/svelte-adapter-azure-swa/tree/main/tests/demo.
I confirmed that the source maps seem to work just fine by starting swa-cli
in the debug terminal and was able to set and stop at the breakpoints, like for example, sentry example GET API, which throws the error. If I switch off the sourcemaps in the vite, so only sourcemaps are generated by the adapter from .svelte-kit/out "sources". I am not able to set the active breakpoints any more. So vscode recognizes the sourcemaps generated by the rollup.
This is what I get in Sentry

All green, but the Sentry does not show me any of the source code refs at all. This is the config:
sentrySvelteKit({
adapter: process.env.SWA ? 'other' : 'node',
sourceMapsUploadOptions: {
org: 'xxx',
project: 'xxx',
sourcemaps: {
assets: ['./build/**/*', './func/**/*', './.svelte-kit/**/*']
}
}
}),
what am I missing? Seems like a bug to me: VSCode recognizes sourcemaps, Sentry does not.
Konstantin
Steps to Reproduce
clone repo https://github.com/kt-npm-modules/svelte-adapter-azure-swa/tree/feat/sentry (branch feat/sentry)
npm run build:swa
npm run swa
Expected Result
I should be able to see normal mappings to the sources (stack trace)
Actual Result
I see trace in the final single azure function file.
Metadata
Metadata
Assignees
Type
Projects
Status