Hello, in my codebase it seems like that the routes/_index.tsx won't match. I'm on the route naming convention v2 and according to my understanding this should render my Index route. But it only renders what's in the root.tsx is defined. Anybody has an idea or experienced a similar behaviour? I just bumped the remix version to v1.18.0 ๐
#_index.tsx seems to be excluded
1 messages ยท Page 1 of 1 (latest)
v2_routingConvention: true in remix.config?
yes ๐ I changed already all other routes to the new convention and everything works as expected except this route
Weird... Run npx remix routes and see what's up?
weirdly it doesn't show up. All other routes are there
Mhm
Should look like this:
<Routes>
<Route file="root.tsx">
<Route index file="routes/_index.tsx" />
</Route>
</Routes>
Can you run npm ls @remix-run/router or yarn why @remix-run/router and see what version shows up?
Should be 1.7
This shouldn't happen anymore, but there was a fastglob problem that existed a few versions back. We cleared it by restarting the server, and possibly deleting .cache, build, dist folders.
Sure you didn't have it as routes/home._index.tsx instead of routes/_index.tsx?
okay headsup. npm ls @remix-run/router wasn't outputting anything. I checked the node_modules and the router folder was empty. I installed it separately (v1.7) but still no success
Yes, that's actually what I want to get rid. I copied the content of home/_index.tsx into _index.tsx to delete home entirely later on
Alright! I got it. We somehow had a regex in the ignoredRouteFiles which filtered out everything with a _ prefix. Really appreachate your help and the npx remix routes command is super helpful! ๐