diff --git a/packages/vue-app/template/client.js b/packages/vue-app/template/client.js index 21196fac77..8036612cf4 100644 --- a/packages/vue-app/template/client.js +++ b/packages/vue-app/template/client.js @@ -145,7 +145,7 @@ async function loadAsyncComponents(to, from, next) { // Call next() next() } catch (err) { - this.error(err) + const error = this.error(err) this.<%= globals.nuxt %>.$emit('routeChanged', to, from, error) next(false) }