-
How can I add a non-route folder, just some components or functions that the page depends on? Now it will report an error:does not export any route piece. This is likely a mistake. |
Beta Was this translation helpful? Give feedback.
Answered by
RMHonor
Jul 7, 2025
Replies: 1 comment 1 reply
-
If you prefix a file or folder with You can customise this behaviour with the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tangzijun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you prefix a file or folder with
-
it'll be omitted from route matching: https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#excluding-files-and-folders-from-routesYou can customise this behaviour with the
routeFileIgnorePrefix
option: https://tanstack.com/router/latest/docs/api/file-based-routing#routefileignoreprefix