-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed as not planned
Labels
Description
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.2Used Package Manager
npm
Expected Behavior
I just want all routes to go to a single file
Actual Behavior
It doesn't as mentioned above
nsams