Title: [Nuxt] Issues with imports in build output (OTel deps, Nitro chunk etc) · Issue #16445 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Nuxt] Issues with imports in build output (OTel deps, Nitro chunk etc) · Issue #16445 · getsentry/sentry-javascript
X Title: [Nuxt] Issues with imports in build output (OTel deps, Nitro chunk etc) · Issue #16445 · getsentry/sentry-javascript
Description: Description In most cases, the way a Nuxt application and the Sentry configuration is built does not create problems. However, there are some edge cases that pop up from time to time and also seem very hard to reproduce. Issue List #1520...
Open Graph Description: Description In most cases, the way a Nuxt application and the Sentry configuration is built does not create problems. However, there are some edge cases that pop up from time to time and also seem ...
X Description: Description In most cases, the way a Nuxt application and the Sentry configuration is built does not create problems. However, there are some edge cases that pop up from time to time and also seem ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16445
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Nuxt] Issues with imports in build output (OTel deps, Nitro chunk etc)","articleBody":"### Description\n\nIn most cases, the way a Nuxt application and the Sentry configuration is built does not create problems. However, there are some edge cases that pop up from time to time and also seem very hard to reproduce.\n\n**Issue List**\n- https://github.com/getsentry/sentry-javascript/issues/15204\n- https://github.com/getsentry/sentry-javascript/issues/17224\n\n---\n\nThose are some insights I gained so far while digging into build-folder related topics:\n\n## 1. `@sentry/nuxt` is not included in the build output `node_modules`\n\nDescribed in this issue: https://github.com/getsentry/sentry-javascript/issues/17224\n\n## 2. `sentry.server.config.mjs` includes imports that should not be there\n\nWhen using yarn, there is an import from `'./chunks/nitro/nitro.mjs';` inside `sentry.server.config.mjs` which breaks the early-import of the SDK. It only happens when using Nuxt v3, setting a `srcDir` **without** `compatibilityVersion: 4`. It's no problem in Nuxt v4.\n\n### 2.1. `sentry.server.config.mjs` bundles in OTel imports\n\nThis already happened but I am not able to reproduce this myself anymore. At some point, the `sentry.server.config.mjs` file in the build output bundles in all of `@opentelemetry/...` imports and the file gets super long.","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2025-06-02T14:00:13Z","url":"https://github.com/getsentry/sentry-javascript/issues/16445"}
| 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:8221be40-6f78-403b-cc93-ede5cbc7920c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C77A:1E9A:17B7B7C:1FF6C5A:6B054BCD |
| html-safe-nonce | f8592cd8c54e41ca96fe5b20862bd0ad1e369a6b59d27dcb7a4b8e2746275049 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzdBOjFFOUE6MTdCN0I3QzoxRkY2QzVBOjZCMDU0QkNEIiwidmlzaXRvcl9pZCI6IjIwNzM2NTg3NjY5MDk1OTA0NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ea5416a11d25164fbcdcebde204ddab59a2f045756f0a3394ccfb3d36ffb0cdf |
| hovercard-subject-tag | issue:3110327291 |
| 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/16445/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecc9ed134b1daf39cbe58f2e7bae5fed62aadff6a1dfa3be85be404808d58ad6/getsentry/sentry-javascript/issues/16445 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecc9ed134b1daf39cbe58f2e7bae5fed62aadff6a1dfa3be85be404808d58ad6/getsentry/sentry-javascript/issues/16445 |
| og:image:alt | Description In most cases, the way a Nuxt application and the Sentry configuration is built does not create problems. However, there are some edge cases that pop up from time to time and also seem ... |
| 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 | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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