Title: fix(nuxt): Nuxt 5 server source maps have no sourcesContent · Issue #25322 · getsentry/sentry-javascript · GitHub
Open Graph Title: fix(nuxt): Nuxt 5 server source maps have no sourcesContent · Issue #25322 · getsentry/sentry-javascript
X Title: fix(nuxt): Nuxt 5 server source maps have no sourcesContent · Issue #25322 · getsentry/sentry-javascript
Description: On Nuxt 5 (Nitro 3), the server source maps that Sentry uploads have no sourcesContent. So Sentry cannot show the source code for server frames. Root cause Nitro 3 has an option experimental.sourcemapMinify. It is on by default when sour...
Open Graph Description: On Nuxt 5 (Nitro 3), the server source maps that Sentry uploads have no sourcesContent. So Sentry cannot show the source code for server frames. Root cause Nitro 3 has an option experimental.source...
X Description: On Nuxt 5 (Nitro 3), the server source maps that Sentry uploads have no sourcesContent. So Sentry cannot show the source code for server frames. Root cause Nitro 3 has an option experimental.source...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25322
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(nuxt): Nuxt 5 server source maps have no sourcesContent","articleBody":"On Nuxt 5 (Nitro 3), the server source maps that Sentry uploads have no `sourcesContent`. So Sentry cannot show the source code for server frames.\n\n### Root cause\n\nNitro 3 has an option `experimental.sourcemapMinify`. It is on by default when source maps are enabled. Nitro's `nitro:sourcemap` plugin then does two things in `generateBundle`:\n\n* It deletes `sourcesContent` from every server map.\n* It clears `mappings` for maps whose sources are all in `node_modules`.\n\nThe module sets `sourcemapExcludeSources: false`, but this has no effect: `nitro:sourcemap` deletes the content after Rolldown writes it.\n\n### Possible fix\n\nSet `nitro.experimental.sourcemapMinify: false` when the user has not set it. The TanStack Start SDK does the same (see the TanStack Start Nitro source map PR). We still have to confirm that the Nitro 3 build that Nuxt 5 uses reads the option from there.\n\n### Tests\n\nIn `dev-packages/e2e-tests/test-applications/nuxt-5-sourcemaps/assert-build.ts`, enable the `SERVER_MARKER` assertion again.","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2026-10-13T11:34:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/25322"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b017e418-72c3-00be-56e7-f7c056cec00a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE46:3A6B0F:47CAB7:6611CA:6B0415A3 |
| html-safe-nonce | e0d56c9f5e3021cd8cf7a5dda852561f0da64b0117848742ba342b2c587c9d4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTQ2OjNBNkIwRjo0N0NBQjc6NjYxMUNBOjZCMDQxNUEzIiwidmlzaXRvcl9pZCI6IjI4NjIyMTkyMzM1MTYwNjYyMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e695148390bfad9e3317fea771b7e0cb9925651a2b1554aca1c521284499bfe |
| hovercard-subject-tag | issue:5829550445 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25322/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33e33bcfd85b7b3b32a96f963b9195f31200f52b4fc58036fe1fa7855055b539/getsentry/sentry-javascript/issues/25322 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33e33bcfd85b7b3b32a96f963b9195f31200f52b4fc58036fe1fa7855055b539/getsentry/sentry-javascript/issues/25322 |
| og:image:alt | On Nuxt 5 (Nitro 3), the server source maps that Sentry uploads have no sourcesContent. So Sentry cannot show the source code for server frames. Root cause Nitro 3 has an option experimental.source... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s1gr1d |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width