-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Description
When configuring the following directory structure in the app router, the object keys in $path.ts conflict. (An object literal cannot have multiple properties with the same name.)
└── app/
├── (withHeader)/
│ ├── layout.tsx
│ └── items/
│ └── page.tsx
└── items/
└── [itemId]/
└── page.tsx
Environment
- Package version:
v0.22.0
- OS:
- Linux
- Windows
- macOS
- Node.js version:
v20.8.0
- npm version:
v10.1.0
Additional context
output
"items": {
$url: (url?: { hash?: string }) => ({ pathname: '/items' as const, hash: url?.hash, path: `/items${buildSuffix(url)}` })
},
"items": {
_itemId: (itemId: string | number) => ({
$url: (url?: { hash?: string }) => ({ pathname: '/items/[itemId]' as const, query: { itemId }, hash: url?.hash, path: `/items/${itemId}${buildSuffix(url)}` })
})
},
skyizwhite, Mackie-S, yassh, obata15, splatoonstat and 3 more
Metadata
Metadata
Assignees
Labels
No labels