When I am creating a product page, the page that is returned is a 404 page not found error. How do I fix this? This is in reference to the
Nextjs ECommerce Tutorial For Beginners 2022 [Next.js, MongoDB & Tailwind]
I also notice that my img tags (src and alt) read undefined as well
404 error comes from here:
if the product slug does not exist you get this error.
check the db to see if you have product with that slug.
also share the screenshot of the 404 error please.
jay Unselected an answer October 23, 2022