T
TanStack•2mo ago
correct-apricot

Random failure of file-based route matches across unrelated folders

đŸ¤¯ I'm encountering a mind-bending issue with file-based routing: in our setup, each folder has route.tsx and index.tsx as siblings, both calling createFileRoute, and we expect two matches (one for each). For certain folders, the index.tsx match (the one rendering the component) completely fails to register, leaving only the route.tsx match. To make it worse, the issue seems interdependent—renaming or removing unrelated folders sometimes resolves or breaks it for others. I have a private repo that reproduces the bug and can share it privately. Could this be a file-based generator issue? Is there a known fix or workaround? Any help is greatly appreciated!
2 Replies
stormy-gold
stormy-gold•2mo ago
ideally try to reproduce this in a stripped down version of your project
correct-apricot
correct-apricotOP•2mo ago
Thank you for your response! I did jsut that, sent you a DM

Did you find this page helpful?