Skip to content

Commit 290fa7e

Browse files
authored
test(nuxt): Add ofetch as dependency (#24304)
Related to this comment: #24283 (comment)
1 parent 3eeea0e commit 290fa7e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dev-packages/e2e-tests/test-applications/nuxt-5/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
},
2020
"//": [
2121
"Currently, we need to install the latest version of Nitro and the Nuxt nightlies as those contain Nuxt v5",
22-
"TODO: remove nitro from dependencies"
22+
"TODO: remove nitro from dependencies",
23+
"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.",
24+
"This fails because `ofetch` is a dependency of `nuxt` rather than the app, so pnpm leaves it in `.pnpm/`",
25+
"TODO: remove ofetch from dependencies: https://github.com/getsentry/sentry-javascript/pull/24283#issuecomment-5615854158"
2326
],
2427
"dependencies": {
2528
"@pinia/nuxt": "^0.11.3",
2629
"@sentry/nuxt": "file:../../packed/sentry-nuxt-packed.tgz",
30+
"ofetch": "^2.0.0-alpha.3",
2731
"nitro": "latest",
2832
"nuxt": "npm:nuxt-nightly@5x",
2933
"vue": "^3.5.41"

0 commit comments

Comments
 (0)