Skip to content

I can't seem to splat everything including indexΒ #12933

@bobrenjc93

Description

@bobrenjc93

I'm using React Router as a...

library

Reproduction

I tried

export default [
    index("routes/home.tsx"),
    route("*", "routes/home.tsx"),
] satisfies RouteConfig;

But it seems to break. If i remove the index line, then it works for everything except index. If I remove the route line if works for nothing but index. But I want both!

System Info

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 134.67 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.6.0 - ~/.nvm/versions/node/v23.6.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v23.6.0/bin/npm
    Watchman: 2025-01-27T03:07:55Z - /usr/local/bin/watchman
  Browsers:
    Chrome: 132.0.6834.160
    Safari: 18.2

Used Package Manager

npm

Expected Behavior

I just want all routes to go to a single file

Actual Behavior

It doesn't as mentioned above

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions