Virtual physical routes
In virtual routes
physical('/posts', 'posts'),
we need to create an additional directory to make route.tsx work as layout wrapper. it is expected behavior. https://stackblitz.com/edit/github-93ulbqhx?file=routes.ts in this official example this hack is found.Steve Steinitz
StackBlitz
Router Basic Virtual File Based Example - StackBlitz
Run official live example code for Router Basic Virtual File Based, created by Tan Stack on StackBlitz
1 Reply
adverse-sapphire•4d ago
seems like a bug. can you please create a GitHub issue for this?