When using create-remix@latest to check out a later version of BeeRich that comes with a routes/_layout._index.tsx file, then create-remix adds a default _index.tsx file to the project code.
This leads to a build error:
⚠️ Route Path Collision: "/"
The following routes all define the same URL, only the first one will be used
🟢 routes/_layout._index.tsx
⭕️️ routes/_index.tsx
Fix/Workaround
There is an easy fix! Just delete the _index.tsx file from the project before diving into the code! :)
To Reproduce
Steps to reproduce the behavior:
Run npx create-remix@latest --template https://github.com/PacktPublishing/Full-Stack-Web-Development-with-Remix/tree/main/15-advanced-session-management/bee-rich/solution with a later version of BeeRich
Follow the prompts in the terminal
Open the BeeRich project in a file explorer and notice the added routes/_index.tsx file
Expected behavior
No _index.tsx file is added.
Actual behavior
Remix's default _index.tsx file is added to the BeeRich project code.
Describe the bug
When using
create-remix@latest
to check out a later version of BeeRich that comes with aroutes/_layout._index.tsx
file, thencreate-remix
adds a default_index.tsx
file to the project code.This leads to a build error:
Fix/Workaround
There is an easy fix! Just delete the
_index.tsx
file from the project before diving into the code! :)To Reproduce
Steps to reproduce the behavior:
npx create-remix@latest --template https://github.com/PacktPublishing/Full-Stack-Web-Development-with-Remix/tree/main/15-advanced-session-management/bee-rich/solution
with a later version of BeeRichroutes/_index.tsx
fileExpected behavior
No
_index.tsx
file is added.Actual behavior
Remix's default
_index.tsx
file is added to the BeeRich project code.