Repository navigation
test(hosting): work around Nuxt Windows prerender build failure (nuxt#36467) - #3359
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 7372287 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The standalone-hosting-nuxt e2e fixture fails to build on windows-2025: nuxt build prerenders /about, vue-bundle-renderer throws "Either manifest or precomputed data must be provided", Nitro exits 1 and ampx deploy fails before any deploy runs. Root cause is nuxt/nuxt#36467: on Windows the Nitro externals plugin resolves a backslash path for the Nuxt renderer and the inline-match rule ("nuxt/dist") never matches backslashes, so the renderer is left external and loads stub manifest/precomputed modules. Force-inlining the renderer via nitro.externals.inline fixes the Windows build and is a no-op on Linux. Config-only change to the test fixture; no dependency or source changes.
sarayev
force-pushed
the
fix/standalone-hosting-nuxt-pin-toolchain
branch
from
October 7, 2026 18:23
4fee626 to
c0c57e2
Compare
sarayev
marked this pull request as ready for review
October 8, 2026 06:21
Simone319
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
standalone-hosting-nuxte2e fixture fails to build onwindows-2025. During the test,ampx deployrunsnpm run build(nuxt build), which prerenders/about.vue-bundle-rendererthrowsEither manifest or precomputed data must be provided, Nitro exits 1, and the deploy fails asNitroBuildError -> AssemblyError -> BackendBuildErrorbefore any CloudFormation deploy happens.Root cause
This is nuxt/nuxt#36467, a Windows-only Nitro bug introduced in Nuxt 4.6.0. On Windows the Nitro externals plugin resolves a backslash path for the Nuxt renderer (
D:\...\node_modules\nuxt\dist\...), and the inline-match rule'nuxt/dist'never matches a backslash path, so the renderer is left external. The external renderer then loads placeholder stub modules (e.g.precomputed.js=const stub = void 0), socreateRenderer()gets neither a manifest nor precomputed data and every SSR/prerender render 500s.It reproduces only on Windows; the same fixture builds green on Linux at every Nuxt 4.x, which is why only the
windows-2025shard fails.Fix
Apply the upstream-reported workaround: force-inline the Nuxt renderer via
nitro.externals.inline. This is config-only on the test fixture, with no dependency or source changes, and is a no-op on Linux (same server output). It is version-independent, so it survives future Nuxt bumps rather than freezing a toolchain version.Verification
nuxt buildgreen on Linux with and without the change (Linux never reproduces the bug).@aws-amplify/integration-testsisprivate, so no changeset is required.windows-2025hosting e2e on this branch.Note
This fixes the fixture flake on
mainand is independent of the backend-deployer release PR #3357; it does not block that release.