'This is likely a mistake' warning. Is this really a mistake?
I have a folder named '~components' inside /src/routes/dashboard. I have some components inside the ~components folder. Then, when I run the app, I get this message in console: Route file "/User/me/.../myproject/src/routes/dashboard/~components/mycomponent.tsx" does not contain any route piece. This is likely a mistake.
No route.tsx was intended because it is a folder for components.
This example also has ~components folder which doesn't have a route.tsx in the expensive route..
https://tanstack.com/router/latest/docs/framework/react/examples/kitchen-sink-file-based?path=examples%2Freact%2Fkitchen-sink-file-based%2Fsrc%2Froutes%2Fexpensive%2F-components%2FExpensive.tsx
Is this really a mistake? Thanks!
React TanStack Router Kitchen Sink File Based Example | TanStack Ro...
An example showing how to implement Kitchen Sink File Based in React using TanStack Router.
4 Replies
extended-salmonOP•2w ago
here are the versions I'm using:
"@tanstack/react-devtools": "^0.8.1",
"@tanstack/react-router": "^1.134.15",
"@tanstack/react-router-devtools": "^1.134.15",
"@tanstack/react-start": "^1.134.15",
"@tanstack/router-plugin": "^1.134.15",
adverse-sapphire•2w ago
the default ignore prefix is "-" (MINUS) while you have used a "~" (TILDE)
adverse-sapphire•2w ago
File-Based Routing API Reference | TanStack Router Docs
TanStack Router's file-based routing is quite flexible and can be configured to suit your project's needs. Configuration options The following options are available for configuring the file-based rout...
extended-salmonOP•2w ago
Oh.. my eyes..
Thanks so much