Skip to content

Comments

[pull] canary from vercel:canary#814

Merged
pull[bot] merged 2 commits intocode:canaryfrom
vercel:canary
Feb 22, 2026
Merged

[pull] canary from vercel:canary#814
pull[bot] merged 2 commits intocode:canaryfrom
vercel:canary

Conversation

@pull
Copy link

@pull pull bot commented Feb 22, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nextjs-bot and others added 2 commits February 21, 2026 23:25
## Summary

- Fixes `route.replace is not a function` error when running `next build
--debug-build-paths` on projects with parallel routes

**Root cause:** Turbopack filters routes at the route level (e.g.,
`/parallel-test` includes all page entries), while JS route discovery
filters at the file path level (e.g., only
`app/parallel-test/page.tsx`). This causes the `appPathsManifest` to
contain entries (like `/@sidebar/page`) that `mappedAppPages` doesn't
have. The unguarded lookup at
`mappedAppPages[originalPath].replace(...)` crashes on `undefined`.

**Fix:** Added a guard to skip manifest entries that don't exist in
`mappedAppPages`.

## Test plan

- [x] Verified `next build --debug-build-paths
'app/parallel-test/**/page.tsx'` succeeds on test fixture
- [x] Verified other `--debug-build-paths` patterns still work
(multi-page, pages-only, etc.)
@pull pull bot locked and limited conversation to collaborators Feb 22, 2026
@pull pull bot added the ⤵️ pull label Feb 22, 2026
@pull pull bot merged commit 54d1203 into code:canary Feb 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants