router icon indicating copy to clipboard operation
router copied to clipboard

[File based router] Catch all route (*) dir/file cannot be created on Windows OS

Open recallwei opened this issue 1 year ago • 1 comments

Describe the bug

It seems that cannot create a file dir named * or a file named *.tsx on Windows OS. So we cannot clone the repo which contains these on Windows. It violates the naming rules of Windows.

Router structure below:

image

Your Example Website or App

Maybe no need to reproduce.

Steps to Reproduce the Bug or Issue

Maybe description is enough.

Expected behavior

Catch all route should be working on Windows.

Screenshots or Videos

No response

Platform

  • OS: Windows

Additional context

No response

recallwei avatar Feb 25 '24 17:02 recallwei

Use the dollar sign instead: $.tsx

tannerlinsley avatar Feb 25 '24 17:02 tannerlinsley