René's URL Explorer Experiment


Title: [Nuxt 5] Replace the Vue integration’s reliance on `app.mixin()` · Issue #23375 · getsentry/sentry-javascript · GitHub

Open Graph Title: [Nuxt 5] Replace the Vue integration’s reliance on `app.mixin()` · Issue #23375 · getsentry/sentry-javascript

X Title: [Nuxt 5] Replace the Vue integration’s reliance on `app.mixin()` · Issue #23375 · getsentry/sentry-javascript

Description: Nuxt 5 disables Vue’s Options API by defaultRefernce: nuxt/nuxt#35791 For the time being, it can be enabled in Nuxt with: export default defineNuxtConfig({ vue: { optionsApi: true } }) What app.mixin() captures today vueInit() in package...

Open Graph Description: Nuxt 5 disables Vue’s Options API by defaultRefernce: nuxt/nuxt#35791 For the time being, it can be enabled in Nuxt with: export default defineNuxtConfig({ vue: { optionsApi: true } }) What app.mix...

X Description: Nuxt 5 disables Vue’s Options API by defaultRefernce: nuxt/nuxt#35791 For the time being, it can be enabled in Nuxt with: export default defineNuxtConfig({ vue: { optionsApi: true } }) What app.mix...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23375

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Nuxt 5] Replace the Vue integration’s reliance on `app.mixin()`","articleBody":"Nuxt 5 disables Vue’s Options API by default\u003cbr>Refernce: [https://github.com/nuxt/nuxt/pull/35791](\u003chttps://github.com/nuxt/nuxt/pull/35791>)\n\nFor the time being, it can be enabled in Nuxt with:\n\n```ts\nexport default defineNuxtConfig({\n  vue: {\n    optionsApi: true\n  }\n})\n```\n---\n\n### What `app.mixin()` captures today\n\n`vueInit()` in `packages/vue/src/integration.ts` registers one mixin when tracing is on. That mixin produces every Vue UI span we emit:\n\n| Span | Op | Operation | Mixin hooks (start / end) | On by default |\n|---|---|---|---|---|\n| `Application Render` | `ui.render` | any | the root's first hook starts it, a `timeout` debounce (2000 ms) ends it | yes |\n| `Vue \u003cRoot>` | `ui.mount` | `mount` | `beforeMount` / `mounted` | yes |\n| `Vue \u003cComponentName>` | `ui.mount` | `mount` | `beforeMount` / `mounted` | no (`trackComponents`) |\n| `Vue \u003cComponentName>` | `ui.mount` | `activate` | `activated` / `deactivated` | no (`trackComponents`) |\n| `Vue \u003cComponentName>` | `ui.mount` | `create` | `beforeCreate` / `created` | no (`trackComponents` + `hooks: ['create']`) |\n| `Vue \u003cComponentName>` | `ui.update` | `update` | `beforeUpdate` / `updated` | no (`trackComponents` + `hooks: ['update']`) |\n| `Vue \u003cComponentName>` | `ui.unmount` | `unmount` (Vue 3) | `beforeUnmount` / `unmounted` | no (`trackComponents` + `hooks: ['unmount']`) |\n| `Vue \u003cComponentName>` | `ui.unmount` | `destroy` (Vue 2) | `beforeDestroy` / `destroyed` | no (`trackComponents` + `hooks: ['destroy']`) |\n\n**Not affected**: Pageload and navigation transactions come from `browserTracingIntegration` and the router. Error capture uses `app.config.errorHandler`, which Vue does not gate. Pinia and TanStack Router never touch mixins.\n\n### The alternative: register Composition API hooks in `setup`\n\nComposition API lifecycle hooks are not gated by `__VUE_OPTIONS_API__`. They write to `instance.m`, `instance.u`, and so on, and the renderer invokes those arrays unconditionally. The question is only how to reach every component's `setup`.\n\nTwo mechanisms, and the split runs between the root component and everything else.\n\n**Runtime, for the root.** `createApp` stores the root component as `app._component`, a plain writable property, and shallow-copies it first, so mutating `app._component.setup` in `vueInit()` does not touch the user's module. Function root components are not copied, so replace the property instead of mutating it. This covers both default-on spans with no plugin and no new install step.\n\n**Build time, for `trackComponents`.** A Vite, Rollup, or webpack plugin adds a `setup` to each `.vue` module's default export that registers the hooks and then calls the original `setup`. Wrap by adding to the existing options object rather than returning a new component, so `name` and `__file` survive.\n\n| Operation | Composition API hook | Runtime root wrap | Build-time plugin |\n|---|---|---|---|\n| `mount` (default on) | `onBeforeMount` / `onMounted` | `Application Render` and `Vue \u003cRoot>`, identical to the mixin | every `.vue` the plugin transforms |\n| `activate` (default on) | `onActivated` / `onDeactivated` | never fires, the root is not inside `\u003cKeepAlive>` | every `.vue` the plugin transforms |\n| `update` (opt-in) | `onBeforeUpdate` / `onUpdated` | root re-renders only | every `.vue` the plugin transforms |\n| `unmount` (opt-in) | `onBeforeUnmount` / `onUnmounted` | `app.unmount()` only | every `.vue` the plugin transforms |\n| `create` (opt-in) | none, `setup` is the create phase | approximate, brackets the original `setup` | approximate, same |\n\n\nComponent names stay correct. `compiler-sfc` emits `__name` in production builds, and `formatComponentName` already reads it.\n\nWhat it misses: render function and (non SFC) JSX components, runtime compiled templates, CDN builds, and pre-compiled components in `node_modules`, including Nuxt's own `\u003cNuxtPage>` and `\u003cNuxtLayout>`, unless the plugin also transforms `node_modules`.\n\nNuxt can get the plugin through the existing `addVitePlugin` call in `packages/nuxt/src/module.ts`. Plain `@sentry/vue` users need a new install step.\n\n### Vue 2 keeps the mixin\n\nWe cannot wrap `setup` at runtime in Vue 2, and Vue 2.7 does not change that.\n\nThe runtime wrap needs a handle on the root component's options object before Vue instantiates it. In Vue 3, `createApp(App)` gives us exactly that as `app._component`. In Vue 2 the integration receives the `Vue` constructor, the user calls `new Vue({...})` afterwards, and that options object never reaches us. Vue 2.7 backported the Composition API but explicitly did not port `createApp`, and 2.7 is the last Vue 2 minor.\n\n### Warning users on missing mixins\n\n`app.mixin()` is a silent no-op when `__VUE_OPTIONS_API__` is `false`, and Vue only warns in dev.\n\nWe can detect if mixins are disabled and we warn the users: https://github.com/getsentry/sentry-javascript/pull/23568\n\n\n","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2026-08-12T15:31:44Z","url":"https://github.com/getsentry/sentry-javascript/issues/23375"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4cf5638c-3c07-f072-035a-d324d004f9be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE7E0:247A88:1F9905:2B75D4:6B074866
html-safe-nonce6256e3d569ef76d46976e3b318653480da1c3c33459ab5eaea463a08b45f8783
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0UwOjI0N0E4ODoxRjk5MDU6MkI3NUQ0OjZCMDc0ODY2IiwidmlzaXRvcl9pZCI6IjM0MDQ3MDc5Nzk5MTkzMTI5OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2f8a6254acf520e47b73520a93c21ea6c9dbf780ca7b9ffa69be91caa4b0a7ee
hovercard-subject-tagissue:5132573732
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/23375/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0cfbba188f8607c58d87e3ff29925c6688d357cc1aa7ce5408e2a9557b298a97/getsentry/sentry-javascript/issues/23375
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0cfbba188f8607c58d87e3ff29925c6688d357cc1aa7ce5408e2a9557b298a97/getsentry/sentry-javascript/issues/23375
og:image:altNuxt 5 disables Vue’s Options API by defaultRefernce: nuxt/nuxt#35791 For the time being, it can be enabled in Nuxt with: export default defineNuxtConfig({ vue: { optionsApi: true } }) What app.mix...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernames1gr1d
hostnamegithub.com
expected-hostnamegithub.com
None26f151990bcb5b67b87df8b3f96ed340f849939d44e36f348402de5e39cca989
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecd00d8452bcb4e56a60ba7c0e61a697b46513fe9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/23375#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F23375
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F23375
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/23375
Reloadhttps://github.com/getsentry/sentry-javascript/issues/23375
Reloadhttps://github.com/getsentry/sentry-javascript/issues/23375
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues335 (335)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/23375
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/23375
#24174https://github.com/getsentry/sentry-javascript/pull/24174
[Nuxt 5] Replace the Vue integration’s reliance on app.mixin()https://github.com/getsentry/sentry-javascript/issues/23375#top
#24174https://github.com/getsentry/sentry-javascript/pull/24174
https://github.com/s1gr1d
javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
on Aug 12, 2026https://github.com/getsentry/sentry-javascript/issues/23375#issue-5132573732
nuxt/nuxt#35791https://github.com/nuxt/nuxt/pull/35791
#23568https://github.com/getsentry/sentry-javascript/pull/23568
s1gr1dhttps://github.com/s1gr1d
on Aug 12, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-29349239392
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Aug 12, 2026https://github.com/getsentry/sentry-javascript/issues/23375#issuecomment-5268928072
Linear Codehttps://linear.app
JS-3365https://linear.app/getsentry/issue/JS-3365
s1gr1dhttps://github.com/s1gr1d
javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
on Aug 12, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-29349240772
s1gr1dhttps://github.com/s1gr1d
Vue Options API warning caused by Sentry tracing integration in Nuxt compatibility v5 #23462https://github.com/getsentry/sentry-javascript/issues/23462
on Aug 20, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-29735659570
s1gr1dhttps://github.com/s1gr1d
on Aug 25, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-29966611577
test(vue): Add test cases for using Options API (mixins) (#23564)https://github.com/getsentry/sentry-javascript/commit/3df629b5e259619ebe637cda2030ec05cc49c9ef
#23564https://github.com/getsentry/sentry-javascript/pull/23564
3df629bhttps://github.com/getsentry/sentry-javascript/commit/3df629b5e259619ebe637cda2030ec05cc49c9ef
feat(vue): Add Options API detection guard (#23568)https://github.com/getsentry/sentry-javascript/commit/add7b8539317f5a58338bbe2866d38191ab7f98a
#23568https://github.com/getsentry/sentry-javascript/pull/23568
add7b85https://github.com/getsentry/sentry-javascript/commit/add7b8539317f5a58338bbe2866d38191ab7f98a
JPeer264https://github.com/JPeer264
on Aug 25, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-29974724240
test(vue): Add test cases for using Options API (mixins) (#23564)https://github.com/getsentry/sentry-javascript/commit/574aa19d757151aa894e2a0db3a84365cd7699bb
#23564https://github.com/getsentry/sentry-javascript/pull/23564
574aa19https://github.com/getsentry/sentry-javascript/commit/574aa19d757151aa894e2a0db3a84365cd7699bb
s1gr1dhttps://github.com/s1gr1d
on Sep 3, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-30491536535
test(vue/e2e): Add tests for Vue UI spans (#24001)https://github.com/getsentry/sentry-javascript/commit/ccce5f824de50701107dd1f4f1ec0cead62a94ba
#24001https://github.com/getsentry/sentry-javascript/pull/24001
ccce5f8https://github.com/getsentry/sentry-javascript/commit/ccce5f824de50701107dd1f4f1ec0cead62a94ba
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#24174https://github.com/getsentry/sentry-javascript/pull/24174
on Sep 22, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-31607386600
s1gr1dhttps://github.com/s1gr1d
on Sep 22, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-31607386668
feat(vue,nuxt): Record default UI spans without Options API (mixins) (#…https://github.com/getsentry/sentry-javascript/commit/3ecbb58eaf8ddc4927888a53a18c5adaf7925afc
#…https://github.com/getsentry/sentry-javascript/pull/24174
3ecbb58https://github.com/getsentry/sentry-javascript/commit/3ecbb58eaf8ddc4927888a53a18c5adaf7925afc
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Sep 23, 2026https://github.com/getsentry/sentry-javascript/issues/23375#issuecomment-5795078177
GitHub Actionshttps://help.github.com/en/actions
#24174https://github.com/getsentry/sentry-javascript/pull/24174
11.0.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.0.0
s1gr1dhttps://github.com/s1gr1d
on Oct 2, 2026https://github.com/getsentry/sentry-javascript/issues/23375#event-32334339020
feat(v10/vue,nuxt): Record default UI spans without Options API (mixi…https://github.com/getsentry/sentry-javascript/commit/2291a29904bdd8a73c2c8ead2ec5b758c23e7cf0
2291a29https://github.com/getsentry/sentry-javascript/commit/2291a29904bdd8a73c2c8ead2ec5b758c23e7cf0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/23375
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/23375
s1gr1dhttps://github.com/s1gr1d
javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.