Nuxt Error Handling
up:: Nuxt ⚐
Summary
Errors can happen in two places:
- Client-side
- Server-side
Client-Side
Error Boundaries
Info
Error boundaries help to isolate errors. It is easier to locate where the error was thrown.
This prevents errors to bubble up throughout the whole app. It catches it and renders the error slot.
Clearing the error
Getting rid of the error is a simple case of setting the error.value = null
.
Server-Side
Is handled by error.vue
.