fix: Fix conflicting paths error when lazy loading layout and index r…#6251
fix: Fix conflicting paths error when lazy loading layout and index r…#6251schiller-manuel merged 2 commits intomainfrom
Conversation
📝 WalkthroughWalkthroughIntroduces fallback parent-resolution in the route generator: when prefixMap lookup fails, the code walks up path segments and consults a route-by-path registry; also ensures any node with a routePath is registered in Changes
Sequence Diagram(s)(omitted — changes are internal generator logic and tests; sequence diagrams not required) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested Reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{js,ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-12-17T02:17:55.086ZApplied to files:
📚 Learning: 2025-10-08T08:11:47.088ZApplied to files:
📚 Learning: 2025-10-01T18:31:35.420ZApplied to files:
📚 Learning: 2025-12-21T12:52:35.231ZApplied to files:
📚 Learning: 2025-12-06T15:03:07.223ZApplied to files:
📚 Learning: 2025-12-06T15:03:07.223ZApplied to files:
📚 Learning: 2025-11-02T16:16:24.898ZApplied to files:
🧬 Code graph analysis (2)packages/router-generator/tests/generator/lazy-only-layout-and-index/routes/path.lazy.tsx (2)
packages/router-generator/tests/generator/lazy-only-layout-and-index/routeTree.snapshot.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected --targets=test:eslint,test:unit,tes... |
❌ Failed | 14m 43s | View ↗ |
nx run-many --target=build --exclude=examples/*... |
✅ Succeeded | 35s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-12-30 01:54:39 UTC
…outes without anchor files
b12a798 to
3a712c0
Compare
TanStack#6251) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

…outes without anchor files
fixes #6230
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.