Expected Behavior
Build should succeed as the type pattern follows Next.js documentation.
Environment
- Next.js version: 15.1.0
- TypeScript version: [5]
- Node.js version: [18.18.0]
- Operating System: [macOS]
Additional Context
-
This issue appeared after upgrading to Next.js 15
-
Multiple type patterns have been tried:
{ params: { id: string } }
RouteContext interface
- Direct inline types
- Type assertions
See Readme for more trial/error.
Expected Behavior
Build should succeed as the type pattern follows Next.js documentation.
Environment
Additional Context
This issue appeared after upgrading to Next.js 15
Multiple type patterns have been tried:
{ params: { id: string } }RouteContextinterfaceSee Readme for more trial/error.