Title: `@sentry/nuxt` is not included in the build output `node_modules` · Issue #17224 · getsentry/sentry-javascript · GitHub
Open Graph Title: `@sentry/nuxt` is not included in the build output `node_modules` · Issue #17224 · getsentry/sentry-javascript
X Title: `@sentry/nuxt` is not included in the build output `node_modules` · Issue #17224 · getsentry/sentry-javascript
Description: This is not really a bug, but it might cause problems. This issue just helps get up-to-date on the behavior as this was already investigated. After some testing, the PR creating this change was found: nuxt/nuxt#30136 With this PR, the di...
Open Graph Description: This is not really a bug, but it might cause problems. This issue just helps get up-to-date on the behavior as this was already investigated. After some testing, the PR creating this change was fou...
X Description: This is not really a bug, but it might cause problems. This issue just helps get up-to-date on the behavior as this was already investigated. After some testing, the PR creating this change was fou...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17224
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@sentry/nuxt` is not included in the build output `node_modules`","articleBody":"> This is not really a bug, but it **might** cause problems. This issue just helps get up-to-date on the behavior as this was already investigated.\n\nAfter some testing, the PR creating this change was found: https://github.com/nuxt/nuxt/pull/30136\n\nWith this PR, the directory that is added to `node_modules` is `[...dir]/node_modules/@sentry/nuxt` and not `@sentry/nuxt/module` anymore. This probably leads to resolving and inlining the `@sentry/nuxt` dependency.\n\n--- \n### Description\n\n\nIdeally, the `sentry.server.config.mjs` file in the build output should look like this (before Nuxt v3.15.0 with npm):\n```javascript\nimport process from 'node:process';\n// debug ID code\nimport * as Sentry from '@sentry/nuxt';\nimport './chunks/virtual/_sentry-release-injection-file.mjs';\n\nSentry.init({\n dsn: \"https://dsn.url\",\n tracesSampleRate: 1,\n});\n//# sourceMappingURL=sentry.server.config.mjs.map\n\n```\n\nHowever, after Nuxt version 3.15.0, `@sentry/nuxt` is not is not included in the `node_modules` in the build output folder. The dependency is inlined with imports from `@sentry/node` and `@sentry/core`. **This is fine, but kept in mind when putting libraries into Rollup externals.**\n\nAfter nightly `3.15.0-28892109.0e84cb9a` (which corresponds to [this commit](https://github.com/nuxt/nuxt/commit/0e84cb9a4027020f29a4926b278ef0cdf423edbc)) the dependency `@sentry/nuxt` is not added anymore.\n\nIt could be another commit as well - between those two nightlies are [several commits](https://github.com/nuxt/nuxt/compare/v3.14.1592...v3.15.0):\n```\n '3.15.0-28890210.3b129290' --> adds dependency\n '3.15.0-28892109.0e84cb9a' --> does not add it\n```\n","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2025-07-30T11:01:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/17224"}
| 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:fb2b36c8-35b5-ab51-eea9-00887a3e94ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAC0:1BAC:1BC8F14:255AE6D:6B05501C |
| html-safe-nonce | f613c18be2407d9a7f2d76b0ddea480c757644b56f71263f975b83f7ce9de191 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUMwOjFCQUM6MUJDOEYxNDoyNTVBRTZEOjZCMDU1MDFDIiwidmlzaXRvcl9pZCI6IjQ3NDY1NTM1MTIzNTAyNzM1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 881f21be2517e02b60fc1cd75b9f796176766c6482ef34d4f223b717973022ff |
| hovercard-subject-tag | issue:3276590166 |
| 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/17224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05f86eef17887da80aa8d8c294380638c34766d05c42cd0e66eef16d7014020b/getsentry/sentry-javascript/issues/17224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05f86eef17887da80aa8d8c294380638c34766d05c42cd0e66eef16d7014020b/getsentry/sentry-javascript/issues/17224 |
| og:image:alt | This is not really a bug, but it might cause problems. This issue just helps get up-to-date on the behavior as this was already investigated. After some testing, the PR creating this change was fou... |
| 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