T
TanStack2y ago
plain-purple

Is there any way to make the pathless route root file to include in it's folder?

Normally if I do _auth.tsx for example and on same level maintain a _auth directory it works fine! But It doesn't work if I want to make a index.tsx file inside the _auth! Is there any way to do that! Because it's looks like a missing piece of the folder located outside the directory!
5 Replies
stormy-gold
stormy-gold2y ago
can you please create a minimal example on stackblitz.com ?
plain-purple
plain-purpleOP2y ago
plain-purple
plain-purpleOP2y ago
as you can see when i have move _auth.tsx inside _auth by naming index.tsx it doesnt catch it's content!
plain-purple
plain-purpleOP2y ago
no! it's something related to pathless route! in that message he is telling for both lazy and normal index at the same time! But i am saying to include the _auth.tsx iniside the _auth folder by naming it index.tsx! but it don't work ! only works if i keep it out!

Did you find this page helpful?