- 01
Generated a dynamic route with ({ params }: { params: { slug: string } }) and read params.slug
`params` should be awaited before using its properties
- 02
Added async to the component and left the type unchanged
Type error at build: the props do not satisfy the constraint PageProps
- 03
Cast params with as any to get past the type checker
Build passed; on the newer Next.js version slug was undefined and the page returned 404
- 04