Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

3-3 Advanced Error Handling

In this lesson, we’ll see another example of dealing with client-side errors.

We can’t always resolve a client-side error by simply re-rendering the broken component. Often, we’ll need to do more to fix what happened. In many cases this will be navigating to a different part of the app.

Finally, we’ll also look at fatal client-side errors, and discuss where you might want to use the NuxtErrorBoundary component.

NuxtErrorBoundary: https://nuxt.com/docs/api/components/nuxt-error-boundary

createError: https://nuxt.com/docs/api/utils/create-error

navigateTo: https://nuxt.com/docs/api/utils/navigate-to

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.