79124811

Date: 2024-10-25 08:14:43
Score: 3.5
Natty:
Report link

I've having same issue. Thrumbo's answer solved it but I had to remove the array[] operator on string.

type Params = Promise<{ slug: string }>

export default async function Page({ params }: { params: Params }) {  
  const { slug } = await params
}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): having same issue
  • Low reputation (1):
Posted by: Ryan Macalandag