next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Docs: Error in Learn Next.js: Handling Errors

Open angel-luis opened this issue 9 months ago • 1 comments

What is the update you wish to see?

After complete the part of Handling all errors with error.tsx, if you follow the instructions of Handling 404 errors with the notFound function, you won't get any 404 page.

This is because, the docs says that this line will return an empty array: console.log(invoice); // Invoice is an empty array [] But when the UUID doesn't exist, it throws an errors instead an empty array.

Is there any context that might help us understand?

I've downloaded the template the last week so everything should be updated.

Does the docs page already exist? Please link to it.

https://nextjs.org/learn/dashboard-app/error-handling

angel-luis avatar May 02 '24 09:05 angel-luis