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•2y ago
can you please create a minimal example on stackblitz.com ?
plain-purpleOP•2y ago
Rahat
StackBlitz
Router Basic File Based Example (forked) - nested folder layouts - ...
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz
plain-purpleOP•2y ago
as you can see when i have move _auth.tsx inside _auth by naming index.tsx it doesnt catch it's content!
stormy-gold•2y ago
is this the same issue as https://discord.com/channels/719702312431386674/1007702008448426065/1205610793836617759 ?
plain-purpleOP•2y 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!