From dbf70999e43782d1130852aa3d31c1e9c1486507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Thu, 7 Feb 2019 11:14:38 +0100 Subject: [PATCH] fix(vue-app): fix `getNuxtChildComponents` method (#4969) --- 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 f207d3c594..b6632144ab 100644 --- a/packages/vue-app/template/client.js +++ b/packages/vue-app/template/client.js @@ -528,7 +528,7 @@ const noopFetch = () => {} // Special hot reload with asyncData(context) function getNuxtChildComponents($parent, $components = []) { $parent.$children.forEach(($child) => { - if ($child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) { + if ($child.$vnode && $child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) { $components.push($child) } if ($child.$children && $child.$children.length) {