We use cookies to improve your experience. By using our site, you agree to our Cookies Policy.
const IssueDetailPage = async ({ params }: Props) => {m const journal = await prisma.journals.findUnique({ where: { id: (await params).id }, // * await to prevent error at the bottom }) ... }
Error: Route "/journals/[id]" used params.id
. params
should be awaited before using its properties
-naz
12/13/2024, 10:35:49 PM