Reproduction
When two or more routes have the same file paths, an error is thrown:
Error: Route config in "routes.ts" is invalid.
see a stackblitz example.
System Info
Used Package Manager
npm
Expected Behavior
That should work. The reason why I tried different URL paths with the same file path is to protect certain paths with guards implemented in layouts.
Actual Behavior
Error:
Error: Route config in "routes.ts" is invalid.