Skip to content

Commit a0d4d0d

Browse files
committed
test(nuxt): Fix Nuxt 5 E2E by pinning @nuxt/cli
1 parent 3d838de commit a0d4d0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
},
2020
"//": [
2121
"Currently, we need to install the latest version of Nitro and the Nuxt nightlies as those contain Nuxt v5",
22+
"@nuxt/cli is pinned. The CLI nightlies register nitro runtime plugins that live inside the CLI package: https://github.com/nuxt/cli/pull/1570",
23+
"Nuxt's impound guard blocks imports from that package in the dev server runtime, so every SSR request fails in dev mode.",
24+
"TODO: remove the @nuxt/cli override when impound allows the CLI runtime plugins",
2225
"TODO: remove nitro from dependencies",
2326
"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.",
2427
"This fails because `ofetch` is a dependency of `nuxt` rather than the app, so pnpm leaves it in `.pnpm/`",
@@ -36,6 +39,11 @@
3639
"@playwright/test": "~1.63.0",
3740
"@sentry-internal/test-utils": "link:../../../test-utils"
3841
},
42+
"pnpm": {
43+
"overrides": {
44+
"@nuxt/cli": "npm:@nuxt/cli-nightly@4.0.0-20260927-110353-6eaa0eb"
45+
}
46+
},
3947
"sentryTest": {
4048
"optional": true
4149
},

0 commit comments

Comments
 (0)