Level 10
Dec 8, 2021
1
Level 10
Vue Config and errorHandler
Where do I insert Vue.config.errorHandler in an Inertia setup?
https://v3.vuejs.org/api/application-config.html#errorhandler
createInertiaApp({
resolve: (name) => require(`./Pages/${name}`),
setup({ el, app, props, plugin }) {
createApp({
render: () => h(app, props),
})
},
});
I need to insert this from Airbrake
Vue.config.errorHandler = function (err, vm, info) {
airbrake.notify({
error: err,
params: {info: info}
});
}
Please or to participate in this conversation.