Title: Problem when matching a sourcemap to an issue in a Next.js page with dynamic params · Issue #8481 · getsentry/sentry-javascript · GitHub
Open Graph Title: Problem when matching a sourcemap to an issue in a Next.js page with dynamic params · Issue #8481 · getsentry/sentry-javascript
X Title: Problem when matching a sourcemap to an issue in a Next.js page with dynamic params · Issue #8481 · getsentry/sentry-javascript
Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Create a Nextjs project with Turborepo (https://vercel.com/templates/next.js/turborepo-next-basic) Configure Sentry manualy (https://docs.sentry.io/platforms/javascript/guides/next...
Open Graph Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Create a Nextjs project with Turborepo (https://vercel.com/templates/next.js/turborepo-next-basic) Configure Sentry manualy (https://docs.se...
X Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Create a Nextjs project with Turborepo (https://vercel.com/templates/next.js/turborepo-next-basic) Configure Sentry manualy (https://docs.se...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8481
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem when matching a sourcemap to an issue in a Next.js page with dynamic params","articleBody":"### Environment\n\nSaaS (https://sentry.io/)\n\n### Steps to Reproduce\n\n1. Create a Nextjs project with Turborepo (https://vercel.com/templates/next.js/turborepo-next-basic)\r\n2. Configure Sentry manualy (https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/?original_referrer=https%3A%2F%2Fwww.google.com%2F)\r\n3. Inside the pages directory, create a page with a dynamic param. [id].tsx for instance.\r\n4. Inside the new file, create and export a component as a Next.js page.\r\n5. Throw an exception in any part of this component (like on a event handler) and capture it with Sentry.\r\n\n\n### Expected Result\n\nI expect that the issue presented on Sentry is able to find the correct sourcemap for the file.\n\n### Actual Result\n\nLooks like it tries to encode the dynamic param part of the sourcemap name and never finds it in the artifacts of the release, even though it exists there.\r\n\r\nThe disclaimer about sourcemap in the issue:\r\n\u003cimg width=\"1576\" alt=\"image\" src=\"https://github.com/getsentry/sentry/assets/23644433/785978a2-63c1-4bc5-ad6e-1bb62bc1c4ed\">\r\n\r\n\r\nThe artifacts in the release:\r\n\u003cimg width=\"1199\" alt=\"image\" src=\"https://github.com/getsentry/sentry/assets/23644433/37c2eecb-a14c-4e79-b1f3-3908b348b59a\">\r\n\n\n### Product Area\n\nIssues - Source Maps\n\n### Link\n\n_No response_\n\n### DSN\n\n_No response_\n\n### Version\n\n_No response_","author":{"url":"https://github.com/ant1m4tt3r","@type":"Person","name":"ant1m4tt3r"},"datePublished":"2023-07-07T20:24:52Z","url":"https://github.com/getsentry/sentry-javascript/issues/8481"}
| 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:19367244-da56-9a0b-9f64-0a5b2090088f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 840C:229AD2:8D7BDC:BC6532:6B04F0F2 |
| html-safe-nonce | b3d9aa4e0589ebd918f50dcca3aa9aa8a075852596b0382c6a1939c81e741cb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDBDOjIyOUFEMjo4RDdCREM6QkM2NTMyOjZCMDRGMEYyIiwidmlzaXRvcl9pZCI6IjkyMTAwMDg3ODQ3Nzk2Njk3NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d25f52e6cb3f7549f53ea6758a34cc1ab90a580b0785311ef529c1ece3980e8a |
| hovercard-subject-tag | issue:1797079058 |
| 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/8481/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d463735e7ad5b106bc26fc4f1a4707c2f0d8e885c1ab30102dc2215e75301f1/getsentry/sentry-javascript/issues/8481 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d463735e7ad5b106bc26fc4f1a4707c2f0d8e885c1ab30102dc2215e75301f1/getsentry/sentry-javascript/issues/8481 |
| og:image:alt | Environment SaaS (https://sentry.io/) Steps to Reproduce Create a Nextjs project with Turborepo (https://vercel.com/templates/next.js/turborepo-next-basic) Configure Sentry manualy (https://docs.se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ant1m4tt3r |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| 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 | cbe60d43d23e17438879ed212ad20068394651c4 |
| 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