Optional Catch all segments throw error
Unanswered
AM posted this in #help-forum
AMOP
I have following segment stucture
but when i try to compile i get this error:
i see other examples like this:
which should be equialent of:
but aint working for some reason
/app
/cars
/[[...id]]
page.tsx
page.tsxbut when i try to compile i get this error:
Error: You cannot define a route with the same specificity as a optional catch-all route ("/cars" and "/cars[[...id]]").i see other examples like this:
app/shop/[[...slug]]/page.jswhich should be equialent of:
app/cars/[[...id]]/page.tsxbut aint working for some reason