Repository navigation
[Nuxt] Inject debug IDs and release only at build-end #18974
Description
Activity
Is this still planned? The check from getsentry/sentry-javascript-bundler-plugins#827 doesn't fully fix #18519. It reproduces on a fresh Nuxt 4.5.2 app (4 pages) with
@sentry/nuxt10.71.0 and 11.1.0:- 13 of 23 files in
.output/serverkeep only the Vite chunk's debug ID. The snippet is within the first 6000 chars, so Nitro skips its own, and two different files with different source maps get uploaded under one ID. chunks/virtual/entry.mjsends up with 5 IDs: Nitro's own plus 4 Vite ones further down. The last registered Vite ID wins.
Either way, server frames resolve with another file's source map. In our app the wrong location shifts with every build, so the same server error opens a new issue on every release.
Registering the Vite plugin for the client only (
server: falsein theaddVitePlugincall insetupSourceMaps) fixes it on both versions: each server file gets exactly one debug ID of its own.- 13 of 23 files in
Hi,
Thanks for sharing the problem you're facing. I'm gonna take another look at this!- moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3
on Oct 2, 2026 - added 2 commits that reference this issue
on Oct 6, 2026 Fix will be released in
11.5.0and10.76.1- added a commit that references this issue
on Oct 6, 2026 A PR closing this issue has just been released 🚀
This issue was referenced by PR #25080, which was included in the 11.5.0 release.
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Description
Problem
Nuxt runs through the build twice (client and server).
.nuxt/distcontain one debug ID.outputand the server-side files which were already included in.nuxt/dist/server(the Nuxt build) are touched by the rollup plugin a second time.This setup causes the Nuxt SDK to include the Vite and the Rollup plugin, so all source map files are uploaded. However, this has some drawbacks:
Solution
By using the Bundler Plugin Manager, we can do everything (debug
ID and release injection) at the end of the build.