vercel / next.js

The React Framework
https://nextjs.org
MIT License
121.29k stars 25.96k forks source link

Docs: Error in Learn Next.js: Handling Errors #65266

Open angel-luis opened 2 weeks ago

angel-luis commented 2 weeks ago

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 commented 1 week ago

I've moved this to the next learn project: https://github.com/vercel/next-learn/issues/662