Skip to content

Vue Options API warning caused by Sentry tracing integration in Nuxt compatibility v5 #23462

Description

@simonmaass

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

10.70.0

Framework Version

Nuxt 4.5.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

When using @sentry/nuxt with Nuxt 4 configured for future.compatibilityVersion: 5, the browser logs:
[Vue warn]: Mixins are only available in builds supporting Options API

Create a Nuxt 4 application with:

future: {
compatibilityVersion: 5
}

Configure Sentry with tracing enabled, for example:

Sentry.init({
dsn: '...',
tracesSampleRate: 0.1
})

Load any page in the browser.

Expected Result

Sentry tracing works without Vue Options API warnings, particularly when component tracking is disabled.

Actual Result

Sentry registers an Options API mixin and Vue emits the warning.

[Vue warn]: Mixins are only available in builds supporting Options API

Additional Context

@sentry/vue registers its tracing integration through a global mixin whenever tracing is enabled:

app.mixin(createTracingMixins(options.tracingOptions))

Nuxt’s v5 compatibility mode disables Vue’s Options API build feature by default. This produces the warning even when trackComponents is false.

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions