remix icon indicating copy to clipboard operation
remix copied to clipboard

[Bug]: Layout route with more than one pathless layout causes invalid conflict

Open pokedotdev opened this issue 2 years ago • 3 comments

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"

You can see reproduction here

pokedotdev avatar May 29 '22 20:05 pokedotdev