Skip to content

[routes.ts]: Route config in "routes.ts" is invalid, when two or more routes have the same path #14039

@mjablons

Description

@mjablons

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

See stackblitz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions