Router generator warning #5003
-
Hi, while migrating from Next to TanStack Router, I found this warning in generator.ts unintuitive: why is the entire file content shown in the output instead of just the file path? |
Beta Was this translation helpful? Give feedback.
Answered by
schiller-manuel
Aug 22, 2025
Replies: 1 comment 1 reply
-
sure the warning can only print the file name instead of the contents. want to create a PR? if you want have non route files in the route directory, you should exclude them via e.g. https://tanstack.com/router/latest/docs/api/file-based-routing#routefileignoreprefix |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
h0lyluck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sure the warning can only print the file name instead of the contents. want to create a PR?
if you want have non route files in the route directory, you should exclude them via e.g. https://tanstack.com/router/latest/docs/api/file-based-routing#routefileignoreprefix