Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Handling Errors in Vue like a Pro

Catching Errors at the Vue App Level thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Catching Errors at the Vue App Level

In this lesson, learn how to run an error handler at the Vue app level. This handler set with app.config.errorHandler runs whenever any error thrown within components or composables bubbles up to the top. The app level error handler is typically used for sending errors to an error reporting service like Sentry, Rollbar, or Bug Snag.

IMPORTANT! If you are using an error reporting service make sure you don’t prevent errors from bubbling to the top of the app (except for very rare circumstances), otherwise they will not be logged!

Links