mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #129] App Router tests fail when project path contains spaces #28
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gentritbiba on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/129
Bug
When the project is located in a directory path containing spaces (e.g.
~/Google Drive/Code/vinext), all App Router, RSC, andnextjs-compattests fail with:Root Cause
In
packages/vinext/src/server/app-dev-server.tsline 220, the virtual RSC entry codegen uses:URL.pathnamereturns percent-encoded strings (e.g.%20for spaces). Vite cannot resolve the file at the encoded path.Fix
Use
fileURLToPath()fromnode:urlinstead of.pathname, which properly decodes the URL to a filesystem path. This is already done correctly elsewhere in the codebase (e.g.cloudflare/tpr.ts:613).Impact