79119719

Date: 2024-10-23 21:16:05
Score: 2
Natty:
Report link

not sure if this is related but next 15 has breaking changes for the properties like params https://nextjs.org/docs/app/building-your-application/upgrading/version-15#async-request-apis-breaking-change

you can either downgrade or try to await the params like this:

type Params = Promise<{ slug: string[] }>

export default async function Page({ params }: { params: Params }) {  
  const { slug } = await params
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: thrumbo