Skip to content

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

Open
@angel-luis

Description

@angel-luis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions