Skip to content

fix(externals): match string rules against windows ids - #4732

Merged
pi0 merged 1 commit into
v2from
fix/windows-externals
Oct 7, 2026
Merged

pi0 merged 1 commit into
v2from
fix/windows-externals

Conversation

@danielroe

@danielroe danielroe commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

resolves nuxt/nuxt#36467

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

encountered this in a downstream issue with Nuxt 4.6.0 on Windows. every SSR page was returning a 500:

Either manifest or precomputed data must be provided

this was because string externals rules never match the id returned the resolver on Windows. that id is a backslash path (D:\some\path\index.js) but normalizeMatcher normalises the pattern to forward slashes and then does a plain startsWith...

so this PR converts backslashes in the id to forward slashes (inside the string matcher only), so it lines up with the already-normalised pattern. the id that's returned and traced is unchanged, and function/RegExp matchers still get the raw id.

(I'm also opening a hotfix in nuxt itself but the correct fix here is in nitro, I think...)

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe
danielroe requested a review from pi0 as a code owner October 6, 2026 12:18
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nitro.build Ready Ready Preview Oct 6, 2026 12:18pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 994c5bdb-2e02-4a04-901d-30b2c6893994

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitropack@4732

commit: 26b3454

@CodeInKlingon

Copy link
Copy Markdown

Installing this pull requests package with the pkg.pr link fixes the nuxt issue for me on windows

@pi0 pi0 added the v2 label Oct 6, 2026
iiAku added a commit to iiAku/Yhtua that referenced this pull request Oct 6, 2026
The Windows package check failed in `nuxt generate` (the tauri
beforeBuildCommand): every prerendered page answered 500 with "Either
manifest or precomputed data must be provided". This is nuxt/nuxt#36467:
on Windows, Nuxt 4.6.0's Nitro externals rule leaves the Vue renderer
external, so the client manifest is never loaded. The fix
(nitrojs/nitro#4732) is not merged or released yet. Linux and macOS are
unaffected, which is why only the Windows job failed.

- nuxt pinned to ~4.5.2; Dependabot ignores 4.6.0 only, so the first
  4.6.x is still proposed and must pass the Windows package check.
- Node baseline back to 22.12: the 22.21 requirement came from the
  @nuxt/cli that Nuxt 4.6 pulls in.
- Hold documented in docs/dependency-policy.md; CHANGELOG corrected.

Verified: bun run check (173 tests), bun run audit. The Windows build
itself is verified by this push's CI run.

This branch was successfully deployed

1 active deployment
Preview — 26b3454b Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants