experimental.typedRoutes
throws TS error for group routes inside dynamic routes
#58226
Closed
1 task done
Labels
Link to the code that reproduces this issue
Code Sand Box
To Reproduce
app/page.tsx
next build
Current vs. Expected behavior
It's supposed to catch
/[locale]/(main)/page.tsx
correctly as/${string}/
.Current: throws TS error.
(group)/page.tsx
/
[dynamic]/about/(group)/page.tsx
/en/about
[dynamic]/(group)/page.tsx
/en/
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
TypeScript (plugin, built-in types)
Additional context
No response
The text was updated successfully, but these errors were encountered: