Title: Build broken with Nuxt 3.16.0 · Issue #15628 · getsentry/sentry-javascript · GitHub
Open Graph Title: Build broken with Nuxt 3.16.0 · Issue #15628 · getsentry/sentry-javascript
X Title: Build broken with Nuxt 3.16.0 · Issue #15628 · 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/15628
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build broken with Nuxt 3.16.0","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\n9.5.0\n\n### Framework Version\n\nNuxt 3.16.0\n\n### Link to Sentry event\n\nN/A\n\n### Reproduction Example/SDK Setup\n\nhttps://stackblitz.com/edit/nuxt-sentry-bundler?file=dist%2Fserver%2Fsentry.server.config.mjs\n\n\n### Steps to Reproduce\n\n1. Install Nuxt 3.16.0 & @sentry/nuxt module\n2. Install the @sentry/nuxt module ([docs](https://docs.sentry.io/platforms/javascript/guides/nuxt/manual-setup/))\n3. Build the project - `npm run build`\n\n\n\n### Expected Result\n\nThis is a build on Nuxt 3.15.4:\n\u003cimg width=\"840\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c9a4fe55-cc6f-43c5-9fbc-d2b61df9fb00\" />\n\nIt does not contain the broken import.\n\n### Actual Result\n\nThe build output is completely different to Nuxt 3.15.4. It includes an import to a non-existent file:\n```js\nimport { init } from \"./node_modules/_sentry/nuxt/build/esm/server/sdk.mjs\";\n```\nThe `_sentry` folder does not exist. \n\n\u003cimg width=\"833\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/cc6b49b2-f6e7-498a-99c0-e160da28f4d5\" />\n\nImporting this module casues the application to crash.","author":{"url":"https://github.com/luc122c","@type":"Person","name":"luc122c"},"datePublished":"2025-03-10T22:11:49Z","url":"https://github.com/getsentry/sentry-javascript/issues/15628"}
| 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:8ba1b717-f143-8a5e-3660-25bebb0ac455 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8E8:1F65:13FC799:1B41522:6B040A74 |
| html-safe-nonce | f2dd4be0d556cb007c7b70fa8be0e8c8b9a86f53935233128fae21418e6f53ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEU4OjFGNjU6MTNGQzc5OToxQjQxNTIyOjZCMDQwQTc0IiwidmlzaXRvcl9pZCI6IjE4MzgwNDM1NzgzNzk3OTkxNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b09fc4c864f1f1418b64b0369cec500080ac8bb7bd99827efd1497500ce5f0c |
| hovercard-subject-tag | issue:2908538697 |
| 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/15628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/045862bb67a20cd9c01a6641826a74406152bc1f6761f43fb35c3ead656c82c4/getsentry/sentry-javascript/issues/15628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/045862bb67a20cd9c01a6641826a74406152bc1f6761f43fb35c3ead656c82c4/getsentry/sentry-javascript/issues/15628 |
| 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 | luc122c |
| 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