Title: [NUXT / CLOUDFLARE] index.js fail symbolication with js_invalid_sourcemap_location · Issue #20051 · getsentry/sentry-javascript · GitHub
Open Graph Title: [NUXT / CLOUDFLARE] index.js fail symbolication with js_invalid_sourcemap_location · Issue #20051 · getsentry/sentry-javascript
X Title: [NUXT / CLOUDFLARE] index.js fail symbolication with js_invalid_sourcemap_location · Issue #20051 · getsentry/sentry-javascript
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/...
Open Graph 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 th...
X 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 th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/20051
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[NUXT / CLOUDFLARE] index.js fail symbolication with js_invalid_sourcemap_location","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nuxt\n\n### SDK Version\n\n@sentry/nuxt@10.46.0 (Runtime SDK from event: sentry.javascript.cloudflare@10.46.0)\n\n### Framework Version\n\nnuxt@4.4.2 (nitro 2.13.1, vite 7.3.1)\n\n### Link to Sentry event\n\nhttps://onderwijsin.sentry.io/issues/108852209/events/bb69ef6fca274801982458474a2770ed?project=4511135217352784\n\n### Reproduction Example/SDK Setup\n\nYou can find the repo we are working from at https://github.com/onderwijsin/regional-site-menu\nOn [this branch](https://github.com/onderwijsin/regional-site-menu/tree/upload-final-output) we tried a post deploy upload of the final build output.\n\n```ts\n// sentry.client.config.ts\nimport * as Sentry from '@sentry/nuxt'\n\nconst runtimeConfig = useRuntimeConfig()\n\nSentry.init({\n dsn: runtimeConfig.public.sentry?.dsn,\n release: runtimeConfig.public.sentry?.release,\n environment: runtimeConfig.public.sentry?.environment,\n debug: runtimeConfig.public.mode.isDebug,\n sampleRate: 1.0,\n sendDefaultPii: true,\n enhanceFetchErrorMessages: 'report-only',\n integrations: [\n Sentry.replayIntegration(),\n Sentry.zodErrorsIntegration(),\n Sentry.httpClientIntegration()\n ],\n tracesSampleRate: 1.0,\n replaysSessionSampleRate: 0.2,\n replaysOnErrorSampleRate: 1.0\n})\n```\n\n```ts\n// server/plugins/sentry-cloudflare-plugin.ts\nimport * as Sentry from '@sentry/nuxt'\nimport { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins'\n\nexport default defineNitroPlugin(\n sentryCloudflareNitroPlugin(() => {\n const runtimeConfig = useRuntimeConfig()\n return {\n dsn: runtimeConfig.public.sentry?.dsn,\n release: runtimeConfig.public.sentry?.release,\n environment: runtimeConfig.public.sentry?.environment,\n debug: runtimeConfig.public.mode.isDebug,\n sampleRate: 1.0,\n tracesSampleRate: 1.0,\n integrations: [Sentry.zodErrorsIntegration()]\n }\n })\n)\n```\n\nNuxt config relevant bits:\n\n- `modules: ['@sentry/nuxt/module']`\n- `sourcemap: { client: 'hidden' }`\n- `sentry.sourcemaps.disable = process.env.SENTRY_UPLOAD_SOURCE_MAPS !== 'true'`\n\n### Steps to Reproduce\n\n1. Configure Nuxt + Cloudflare per docs (@sentry/nuxt/module + sentryCloudflareNitroPlugin).\n2. Build and deploy to Cloudflare Workers preview (nitro.preset=cloudflare_module).\n3. Trigger a server error via a test route (GET /api/_sentry/test).\n4. Open event JSON in Sentry.\n\n### Expected Result\n\nServer-side stack traces are symbolicated with source context (like client-side), no sourcemap-location errors.\n\n### Actual Result\n\nServer-side event remains unsymbolicated with:\n- `abs_path: \"/index.js\"`\n- `errors[].type = \"js_invalid_sourcemap_location\"`\n- `symbolicator_type = \"invalid_location\"`\n\nLatest event JSON shows:\n- `debug_meta.images[0].code_file = \"/index.js\"`\n- `debug_meta.images[0].debug_id = \"7291620e-42c4-4937-a5a9-da6200edff2f\"`\n\n\n### Additional Context\n\nFrom CI logs for the same release (`8e4b06b51f0d5342381499ad722c66aa4ac91a33`):\n- Sentry Nuxt build-time uploads include chunk artifact with debug ID:\n - `7291620e-42c4-4937-a5a9-da6200edff2f` -> `test.get.mjs.map`\n- Final Wrangler bundle upload (custom step) includes:\n - `~/index.js (sourcemap at index.js.map, debug id a6c0872b-5194-5c5c-b067-5bf082cdc965)`\n\nSo runtime frames are `/index.js`, but event debug ID still points to a pre-Wrangler chunk debug ID, and symbolication fails with `js_invalid_sourcemap_location`.\n\nQuestions:\n1. For Nuxt Cloudflare (`cloudflare_module`), should `@sentry/nuxt` support final Worker bundle sourcemaps out-of-the-box?\n2. Is `/index.js` expected to be valid for symbolication in this setup, or is additional path normalization required?\n3. What is the recommended official CI flow to ensure deployed Worker code and uploaded sourcemaps/debug IDs are guaranteed to match?\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/remihuigen","@type":"Person","name":"remihuigen"},"datePublished":"2026-03-31T10:06:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/20051"}
| 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:57df08fd-147f-9de4-5ef6-902819a4390f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6F6:EFB54:2B65CF:39D7EC:6B04B782 |
| html-safe-nonce | 7e0e76efcc8d1197266c2f8cb1f6e3f6053976cf9b63d84b8446564b45653b80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkY2OkVGQjU0OjJCNjVDRjozOUQ3RUM6NkIwNEI3ODIiLCJ2aXNpdG9yX2lkIjoiNzk0ODkyODAwNjc5NTI0MjI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53e9e8676ab6c065ff8042ca554a3c604bcce6849f92aa1b28d8a876432bb8d0 |
| hovercard-subject-tag | issue:4177817964 |
| 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/20051/issue_layout |
| twitter:image | https://opengraph.githubassets.com/581c5d27bd3b08f941ef16624ba190a620afcec6728b221a4ca838d6253307c5/getsentry/sentry-javascript/issues/20051 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/581c5d27bd3b08f941ef16624ba190a620afcec6728b221a4ca838d6253307c5/getsentry/sentry-javascript/issues/20051 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | remihuigen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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