Skip to content

Commit 4a047ca

Browse files
committed
chore: use exported vue options instead of importing from src
1 parent e89b97c commit 4a047ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nuxt/src/runtime/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ClientOptions, Context, SerializedTraceData } from '@sentry/core';
22
import { captureException, debug, getClient, getTraceMetaTags } from '@sentry/core';
3-
import type { VueOptions } from '@sentry/vue/src/types';
3+
import type { VueIntegrationOptions } from '@sentry/vue';
44
import type { CapturedErrorContext } from 'nitropack/types';
55
import type { NuxtRenderHTMLContext } from 'nuxt/app';
66
import type { ComponentPublicInstance } from 'vue';
@@ -69,7 +69,7 @@ export function reportNuxtError(options: {
6969

7070
if (instance?.$props) {
7171
const sentryClient = getClient();
72-
const sentryOptions = sentryClient ? (sentryClient.getOptions() as ClientOptions & VueOptions) : null;
72+
const sentryOptions = sentryClient ? (sentryClient.getOptions() as ClientOptions & VueIntegrationOptions) : null;
7373

7474
// `attachProps` is enabled by default and props should only not be attached if explicitly disabled (see DEFAULT_CONFIG in `vueIntegration`).
7575
if (sentryOptions?.attachProps && instance.$props !== false) {

0 commit comments

Comments
 (0)