This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
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