-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Which project does this relate to?
Router
Describe the bug
When lazy loading an index route and a layout route for the same path, tanstack router's vite codegen gives the following error:
Error: Conflicting configuration paths were found for the following routes: "/path", "/path".
Please ensure each Route has a unique full path.
Conflicting files:
/home/projects/github-qrvf1otd/src/routes/path.lazy.tsx
/home/projects/github-qrvf1otd/src/routes/path.index.lazy.tsx
Your Example Website or App
https://stackblitz.com/edit/github-qrvf1otd?file=src%2Froutes%2Fpath.index.lazy.tsx
Steps to Reproduce the Bug or Issue
- Go to the example url where file based routing is used
- Observe
path.index.lazy.tsxandpath.lazy.tsxint theroutesdirectory - Run
npm run devif not started automatically and observe the error in route codegen
Expected behavior
There is no error when lazy loading index and layout routes.
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.143.11 (started in last few days)
- OS: macOS
- Browser: Chrome
- Browser Version: 143.0.7499.170
- Bundler: vite
- Bundler Version: 7.3.0
Additional context
Possibly related to #5421
fernion and YoCodingJosh
Metadata
Metadata
Assignees
Labels
No labels