Title: fix(nuxt): Nuxt 5 server source maps do not reach the original source files · Issue #25323 · getsentry/sentry-javascript · GitHub
Open Graph Title: fix(nuxt): Nuxt 5 server source maps do not reach the original source files · Issue #25323 · getsentry/sentry-javascript
X Title: fix(nuxt): Nuxt 5 server source maps do not reach the original source files · Issue #25323 · getsentry/sentry-javascript
Description: On Nuxt 5, server stack frames resolve to .nuxt/vite/services/ssr/..., not to the .vue and .ts source files. Root cause Nuxt 5 builds the server in two steps: The Vite ssr environment (a Nitro "service") builds the app into .nuxt/vite/se...
Open Graph Description: On Nuxt 5, server stack frames resolve to .nuxt/vite/services/ssr/..., not to the .vue and .ts source files. Root cause Nuxt 5 builds the server in two steps: The Vite ssr environment (a Nitro "ser...
X Description: On Nuxt 5, server stack frames resolve to .nuxt/vite/services/ssr/..., not to the .vue and .ts source files. Root cause Nuxt 5 builds the server in two steps: The Vite ssr environment (a Nitro &quo...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25323
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(nuxt): Nuxt 5 server source maps do not reach the original source files","articleBody":"On Nuxt 5, server stack frames resolve to `.nuxt/vite/services/ssr/...`, not to the `.vue` and `.ts` source files.\n\n### Root cause\n\nNuxt 5 builds the server in two steps:\n\n1. The Vite `ssr` environment (a Nitro \"service\") builds the app into `.nuxt/vite/services/ssr`, with source maps.\n2. The `nitro` environment bundles that output again into `.output/server`.\n\nNitro reads the service output as plain code and ignores the `.map` files next to it. So the final maps end at the intermediate output and do not chain to the original sources.\n\n### Possible fix\n\nTanStack Start with `nitro/vite` has the same problem. The TanStack Start fix has two parts:\n\n* In the `nitro` environment, a `load` hook returns each service chunk together with its `.map`, so the bundler composes both maps.\n* The Sentry plugin does not run in the service environment, so the service's debug IDs do not end up in Nitro's output.\n\nThe same approach probably works for Nuxt 5. Check how `@nuxt/kit` scopes Vite plugins to environments: kit 3 and kit 4.6 do this differently.\n\n### Tests\n\nIn `dev-packages/e2e-tests/test-applications/nuxt-5-sourcemaps/assert-build.ts`, enable the commented-out assertion that the server maps reach `app/pages/index.vue`.","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2026-10-13T11:34:19Z","url":"https://github.com/getsentry/sentry-javascript/issues/25323"}
| 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:67c7c329-d4a9-71e7-f0b2-a3b5e452a116 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C29A:1FD1:F2E883:147DF3D:6B0426DE |
| html-safe-nonce | ea2b43f6649acecacf92c4c101b395a47db59622d1c098ff2e5f72e846ad823a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjlBOjFGRDE6RjJFODgzOjE0N0RGM0Q6NkIwNDI2REUiLCJ2aXNpdG9yX2lkIjoiMTc1MjM1MjQwMDkzNDcwODk1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 46d35ce3c12064ec13df336e3bfb677927ee4b4dd303fe43b8e978a9beb0f549 |
| hovercard-subject-tag | issue:5829553630 |
| 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/25323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49ec75fff9843bb6d8e26361884423db52914b4886708030250ed2c170a75bcb/getsentry/sentry-javascript/issues/25323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49ec75fff9843bb6d8e26361884423db52914b4886708030250ed2c170a75bcb/getsentry/sentry-javascript/issues/25323 |
| og:image:alt | On Nuxt 5, server stack frames resolve to .nuxt/vite/services/ssr/..., not to the .vue and .ts source files. Root cause Nuxt 5 builds the server in two steps: The Vite ssr environment (a Nitro "ser... |
| 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 | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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