[Bug Report] Incorrect dts Generation for Nested Index Routes #645
-
Given the following file structure:
The generated dts is as follows: export interface RouteNamedMap {
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
'//': RouteRecordInfo<'//', '/', Record<never, never>, Record<never, never>>,
'//device_frame/': RouteRecordInfo<'//device_frame/', '/device_frame', Record<never, never>, Record<never, never>>,
'//mobile/': RouteRecordInfo<'//mobile/', '/mobile', Record<never, never>, Record<never, never>>,
'//pad/': RouteRecordInfo<'//pad/', '/pad', Record<never, never>, Record<never, never>>,
'//pc/': RouteRecordInfo<'//pc/', '/pc', Record<never, never>, Record<never, never>>,
'/design/home': RouteRecordInfo<'/design/home', '/design/home', Record<never, never>, Record<never, never>>,
} Note: The appearance of double slashes ( |
Beta Was this translation helpful? Give feedback.
Answered by
posva
May 18, 2025
Replies: 1 comment 1 reply
-
This is expected. As you see in your routes, you already have “/“ and “/design” that are unrelated to that route. Note this is just the name of the route and that you can put a name between parentheses instead of index: (app)/index.vue (app).vue |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is expected. As you see in your routes, you already have “/“ and “/design” that are unrelated to that route. Note this is just the name of the route and that you can put a name between parentheses instead of index: (app)/index.vue (app).vue