Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EmilMoe's avatar
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}
  });
}
0 likes
1 reply

Please or to participate in this conversation.