remix
remix copied to clipboard
[Bug]: Layout route with more than one pathless layout causes invalid conflict
What version of Remix are you using?
1.5.1
Steps to Reproduce
Create a route structure like so:
app/routes
├── slug
│ ├── __bar
│ │ └── bar.tsx
│ ├── __foo
│ │ ├── foo.tsx
│ │ └── index.tsx
│ ├── __bar.tsx
│ └── __foo.tsx
└── slug.tsx
Expected Behavior
Layout routes can have more than one pathless layout route.
Actual Behavior
The error is thrown when starting remix:
Error: Path "slug/" defined by route "routes/slug/__foo" conflicts with route "routes/slug/__bar"