From 0566e4b64dfeb5f4684cc1c4cb1b63c8e71c2f76 Mon Sep 17 00:00:00 2001 From: s1gr1d <32902192+s1gr1d@users.noreply.github.com> Date: Thu, 10 Sep 2026 15:10:47 +0200 Subject: [PATCH] test(nuxt): Add ofetch as dependency --- .../e2e-tests/test-applications/nuxt-5/package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-packages/e2e-tests/test-applications/nuxt-5/package.json b/dev-packages/e2e-tests/test-applications/nuxt-5/package.json index 2279ff1980bc..b755bb98e68a 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-5/package.json +++ b/dev-packages/e2e-tests/test-applications/nuxt-5/package.json @@ -19,11 +19,15 @@ }, "//": [ "Currently, we need to install the latest version of Nitro and the Nuxt nightlies as those contain Nuxt v5", - "TODO: remove nitro from dependencies" + "TODO: remove nitro from dependencies", + "Nuxt generates `fetch.server.mjs` as a virtual module that imports `ofetch`, and since a virtual id is neither absolute nor on disk, Vite resolves from its `root` (the srcDir) instead of the importer's folder.", + "This fails because `ofetch` is a dependency of `nuxt` rather than the app, so pnpm leaves it in `.pnpm/`", + "TODO: remove ofetch from dependencies: https://github.com/getsentry/sentry-javascript/pull/24283#issuecomment-5615854158" ], "dependencies": { "@pinia/nuxt": "^0.11.3", "@sentry/nuxt": "file:../../packed/sentry-nuxt-packed.tgz", + "ofetch": "^2.0.0-alpha.3", "nitro": "latest", "nuxt": "npm:nuxt-nightly@5x", "vue": "^3.5.41"