From 6ed3ecacc78207226121ce8f190ec0af15887883 Mon Sep 17 00:00:00 2001 From: Dmitry Molotkov Date: Wed, 28 Nov 2018 19:30:40 +0300 Subject: [PATCH] hotfix(vue-app): ReferenceError error passed with routeChanged (#4444) --- packages/vue-app/template/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }