Title: [Nuxt] Look for SDK init files in Nuxt layers · Issue #14345 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Nuxt] Look for SDK init files in Nuxt layers · Issue #14345 · getsentry/sentry-javascript
X Title: [Nuxt] Look for SDK init files in Nuxt layers · Issue #14345 · getsentry/sentry-javascript
Description: Problem Statement We use Nuxt layers to have a common base for multiple projects. After adding the @sentry/nuxt module and the client/server configuration files (sentry.*.config.ts) to the base layer I had a hard time figuring out why so...
Open Graph Description: Problem Statement We use Nuxt layers to have a common base for multiple projects. After adding the @sentry/nuxt module and the client/server configuration files (sentry.*.config.ts) to the base lay...
X Description: Problem Statement We use Nuxt layers to have a common base for multiple projects. After adding the @sentry/nuxt module and the client/server configuration files (sentry.*.config.ts) to the base lay...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14345
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Nuxt] Look for SDK init files in Nuxt layers","articleBody":"### Problem Statement\n\nWe use [Nuxt layers](https://nuxt.com/docs/getting-started/layers) to have a common base for multiple projects. After adding the @sentry/nuxt module and the client/server configuration files (`sentry.*.config.ts`) to the base layer I had a hard time figuring out why sourcemaps weren't uploaded and Sentry wasn't initialised in the applications based on this layer.\n\nOnly after diving into https://github.com/getsentry/sentry-javascript/blob/d253621128cf795e89c74e3188efc9722e60d1ca/packages/nuxt/src/module.ts#L72 and https://github.com/getsentry/sentry-javascript/blob/d253621128cf795e89c74e3188efc9722e60d1ca/packages/nuxt/src/vite/utils.ts#L9 I figured out that I had to put these files into the apps, as they wouldn't be found in the base layer.\n\nAfter I did that things started working as expected (I also moved/duplicated the sentry config key from the base layer to the apps nuxt.config file, not sure if that was necessary).\n\n### Solution Brainstorm\n\nEither somehow involve layers into the resolution of these init files, or cleary document that layer based configuration is not supported.","author":{"url":"https://github.com/jaap3","@type":"Person","name":"jaap3"},"datePublished":"2024-11-18T16:18:44Z","url":"https://github.com/getsentry/sentry-javascript/issues/14345"}
| 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:d4612af4-0612-728a-3858-261b3218d998 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA62:C47A7:20FBCE:2B44C6:6B075F08 |
| html-safe-nonce | 7df56862b7e916aa185399bfad79a7ef7fa23a842d0187489c2d4d913d14a1be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTYyOkM0N0E3OjIwRkJDRToyQjQ0QzY6NkIwNzVGMDgiLCJ2aXNpdG9yX2lkIjoiMjE5MjQ1MjE0MjA2ODM1ODkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 649316c3cd92c7c88313488a1231ba2376dfbb512c1e0e6d02ad9e2d18d8030d |
| hovercard-subject-tag | issue:2669099171 |
| 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/14345/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c43fa212d490e126b3dd338c70ac11706cf79ce89294cee90d933f3f35f7e33/getsentry/sentry-javascript/issues/14345 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c43fa212d490e126b3dd338c70ac11706cf79ce89294cee90d933f3f35f7e33/getsentry/sentry-javascript/issues/14345 |
| og:image:alt | Problem Statement We use Nuxt layers to have a common base for multiple projects. After adding the @sentry/nuxt module and the client/server configuration files (sentry.*.config.ts) to the base lay... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaap3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82 |
| 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 | bd845eb7947c1ed8c850f7ab415a51339d162de3 |
| 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