Closed jaysson closed 1 year ago
Hello! This is actually intentional. You're hitting a safeguard that prevents child routes from starting with a lowercase character. Granted, it's a bit confusing, but I'm not sure how to make the error message more user-friendly.
Quoting from the README (grammatical error fixed):
Child routes have to be in CONSTANT_CASE or PascalCase to prevent overlapping with other route fields.
As stated, the reason for this is to prevent clashing between child routes and (current and future) route API (such as path
, buildUrl
, types
, etc.).
I also run tests for typescript v4.9.3, which seems to be the latest at the moment, and can confirm that everything works fine.
I'm closing this because it seems to work as intended. I mentioned this quirk in the "Limitations" section in README.
Please reopen if I'm missing something.
Throws
I am using typescript 4.9.4.