From 3df44fc41d9c4c22b7497f96c390e6c0eb7163b6 Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Tue, 13 Aug 2024 11:20:30 +0200 Subject: [PATCH] fix(nuxt): Add import line for disabled `autoImport` --- dev-packages/e2e-tests/test-applications/nuxt-3/app.vue | 2 +- .../e2e-tests/test-applications/nuxt-3/nuxt.config.ts | 3 +++ .../test-applications/nuxt-3/pages/fetch-server-error.vue | 4 +++- .../test-applications/nuxt-3/pages/test-param/[param].vue | 2 ++ .../nuxt-3/server/api/param-error/[param].ts | 2 ++ .../test-applications/nuxt-3/server/api/server-error.ts | 2 ++ .../test-applications/nuxt-3/server/api/test-param/[param].ts | 2 ++ packages/nuxt/src/module.ts | 2 ++ 8 files changed, 17 insertions(+), 2 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue index 4e7954ceb4af..23283a522546 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue @@ -4,7 +4,7 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/nuxt.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3/nuxt.config.ts index 87cff074ccd9..69b31a4214ec 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/nuxt.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/nuxt.config.ts @@ -1,4 +1,7 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ modules: ['@sentry/nuxt/module'], + imports: { + autoImport: false, + }, }); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/fetch-server-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/fetch-server-error.vue index 4643f045582e..8cb2a9997e58 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/fetch-server-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/fetch-server-error.vue @@ -5,7 +5,9 @@ \ No newline at end of file + diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/test-param/[param].vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/test-param/[param].vue index 4b2b7e35a83e..2ac1b9095a0f 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/test-param/[param].vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/test-param/[param].vue @@ -6,6 +6,8 @@