Following along with the tutorial, (Chapter:“Deleting Issues” #4-Deleting an Issue) I got an error when I added the onClick in the DeleteIssueButton.tsx. I re-started the server and when I tried to run the server back I got the following message:
Argument id
is missing.
at async IssueDetailPage (./app/issues/[id]/page.tsx:43:19)
⨯ PrismaClientValidationError:
Invalid prisma.issue.findUnique()
invocation:
{
where: {
- id: Int
}
}
Argument id
is missing.
at async IssueDetailPage (./app/issues/[id]/page.tsx:43:19)
digest: “2011308464”