Title: NextJS Webpack Plugin not including all relevant sourcemaps · Issue #16359 · getsentry/sentry-javascript · GitHub
Open Graph Title: NextJS Webpack Plugin not including all relevant sourcemaps · Issue #16359 · getsentry/sentry-javascript
X Title: NextJS Webpack Plugin not including all relevant sourcemaps · Issue #16359 · 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/16359
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NextJS Webpack Plugin not including all relevant sourcemaps","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/nextjs\n\n### SDK Version\n\n9.22.0\n\n### Framework Version\n\nNext 15.3.0\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nWe recently migrated to the Webpack plugin and used to upload the sourcemaps using a GitHub Action - since the migration, we have many issues that throw \"In App\" but sourcemaps are only available up to a certain point. Previously, the same issues had 100% sourcemap coverage.\n\n\n\nAs seen here, `main-*.js` gets explicitly excluded from the sourcemap upload, even with `widenClientFileUpload` enabled:\n\nhttps://github.com/getsentry/sentry-javascript/blob/48f1a4f0c240d781bad3461bd26a683c5512e7ba/packages/nextjs/src/config/webpackPluginOptions.ts#L44-L52\n\nIt seems some of our code is being bundled in the main bundle (my suspicion is that in this specific case it happens because the `safeParse` function is also used in instrumentation-client), which is now not available anymore to view.\n\n### Expected Result\n\nBeing able to see sourcemaps for the main bundle as well\n\n### Actual Result\n\nSee reproduction steps","author":{"url":"https://github.com/FabianKoder","@type":"Person","name":"FabianKoder"},"datePublished":"2025-05-22T08:41:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/16359"}
| 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:607046ec-9d10-af97-2c59-60f15243d6b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BB8:F4746:28B155:370369:6B073E3F |
| html-safe-nonce | 82290777e123e9b5bc32c5b544c506071066fd9ad038c28a245f5de15ab1014a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkI4OkY0NzQ2OjI4QjE1NTozNzAzNjk6NkIwNzNFM0YiLCJ2aXNpdG9yX2lkIjoiMTk1NTYwODkwNjQyNDU5ODA3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50196d1f5f6a7dd8821644490f62708605c7c7a8b027884bd0bd7d32a863cc66 |
| hovercard-subject-tag | issue:3082550298 |
| 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/16359/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6d4c4223e25c97a6e0a34bb42d9ef2fbf4d772412808cae39f5ffb4670b8b20/getsentry/sentry-javascript/issues/16359 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6d4c4223e25c97a6e0a34bb42d9ef2fbf4d772412808cae39f5ffb4670b8b20/getsentry/sentry-javascript/issues/16359 |
| 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 | FabianKoder |
| hostname | github.com |
| expected-hostname | github.com |
| None | d97a1befc96fc1512839eca15eb541061d491301144c9168e2985a8580319a49 |
| 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 | d28643426bfe8d1692f8788961b8217e9003f493 |
| 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