#I'm getting a page not found error but cannot identify the cause of the problem

3 messages · Page 1 of 1 (latest)

dusty vigil
#

After getting through Chapter 12: Updating an invoice section - no eslint errors in vscode - after clicking the Edit Invoice button on the edit page I'm directed to a page not found page. The invoice is ultimately actually updated (as seen from /dashboard/invoices where the invoices are listed and the url shown in the edit page appears to be what it should be (with the uuid appearing in the url and in the right place in the url). Also I've checked, double checked, and triple checked the location of page.tsx and the directories for the edit path and it looks like what is shown in the tutorial at /app/dashboard/invoices/[id]/edit/page.tsx

What could be causing the problem and/or how to I find out?

Mutate data using React Server Actions, and revalidate the Next.js cache.

#

The expected result as stated at the end of that section of the tutorial is "...After submitting the form, you should be redirected to the invoices page, and the invoice should be updated."

#

I might know what the problem is. Let me check