-
I want a route to wrap the index page. I can't get it to work, despite following several examples online, and can't figure it out from docs. I'm getting:
What part of https://remix.run/docs/en/1.15.0/guides/routing#pathless-layout-routes am I getting wrong? I'm on 1.15 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
And I guess related I don't understand why |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I'm also facing this issue in my application when migrating to the latest versions of Remix. I use the double underscore layout file naming convention extensively. I'm using the createRoutesFromFolders function in remix config, and I'm still receiving many route collision warnings.
I believed that with 'createRoutesFromFolders' function I could use v1 file convention fully. Is there a way to avoid this warning without changing my naming convention? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
still a problem 2 yers after. |
Beta Was this translation helpful? Give feedback.
Because it has v2 route convention enabled by default, which is why your errors are not working too, in v2 convention you don’t use folders anymore.
I recommend you to either turn off v2 convention in your remix.config.js or read the whole guide about how it works since it changes everything about the file convention.