'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!
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!
An example showing how to implement Kitchen Sink File Based in React using TanStack Router.