You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Uploading source maps with SST, Nitro and Tanstack Start ends up with 3 source map bundles #19396
Multiple source maps are uploaded for one project. In this case 3 times. Seems to be related to the Sentry plugin and Nitro not working together. My theory is that somewhere in the build pipeline the Sentry plugin gets triggered 3 times to upload source maps.
TODO
Fill in all TODO: placeholders in source files (for this repro, start with src/router.tsx).
Install dependencies:
pnpm install
Deploy to SST test stage:
pnpm sst deploy --stage test
After deploy visist the https://domain.com/test page to trigger an error. See that the sourcemaps is not working.
Expected Result
I only want to see one source map being uploaded, and that it is the correct one. So my stack traces are actually with readable code.
Actual Result
Additional Context
Let me know if there is anything more I can provide for this issue to get attention.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Hey! You can try but I don't think the subpath export will help you with this. I haven't investigated this yet, so can't really give a timeline. Will post an update here when I have looked into this a bit more. If you find a workaround, definitely let me know!
Hey @nicohrubec we are considering updating to latest Vite and latest Nitro. Do I still need the workaround for uploading to sentry in Nitro's compiled hook?
Activity
linear commentedon Feb 19, 2026
JS-1750
nicohrubec commentedon Feb 19, 2026
Hello, thanks for writing in. We'll take a look.
sommeeeer commentedon Feb 24, 2026
Hi Nicolas! I was wondering if you guys are working with this one or if I should try to resolve to some workaround for now.
Im happy to provide more information or help in any way if that would help the progress on this one.
Wish you guys a good week!
I guess I could try this: #19182 ?
nicohrubec commentedon Feb 24, 2026
Hey! You can try but I don't think the subpath export will help you with this. I haven't investigated this yet, so can't really give a timeline. Will post an update here when I have looked into this a bit more. If you find a workaround, definitely let me know!
12 remaining items
sommeeeer commentedon Mar 20, 2026
Hey @nicohrubec we are considering updating to latest Vite and latest Nitro. Do I still need the workaround for uploading to sentry in Nitro's
compiledhook?nicohrubec commentedon Mar 20, 2026
Hey @sommeeeer, likely yes. We haven't had time to investigate a proper fix for this
sommeeeer commentedon Mar 20, 2026
Alright. No worries :) I'll just use the CLI for the uploads then after Nitro is done compiling :)
sommeeeer commentedon Apr 30, 2026
Seems that this is working now thanks to @nicohrubec !
Here is a working reproduction example for deploying with SST and Nitro: https://github.com/sommeeeer/tanstack-sentry-nitro-sst.git
I was not able to get sourcemaps working server-side but I guess that is something that should be in another issue