From dc7be950b1259458af0f1a5bff076bacf3594d23 Mon Sep 17 00:00:00 2001 From: Telepenin Nikolay Date: Thu, 13 Dec 2018 20:00:58 +0300 Subject: [PATCH] fix($core): variable `parent` is undefined in build process (#1098) --- packages/@vuepress/core/lib/app/components/Content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/app/components/Content.js b/packages/@vuepress/core/lib/app/components/Content.js index 29e0a628a2..40689b5ca1 100644 --- a/packages/@vuepress/core/lib/app/components/Content.js +++ b/packages/@vuepress/core/lib/app/components/Content.js @@ -13,7 +13,7 @@ export default { if (Vue.$vuepress.isPageExists(pageKey)) { // In SSR, if a component is not registered with the component option // vue-server-renderer will not be able to resovle it. - if (!parent.$ssrContext) { + if (!this.$parent.$ssrContext) { Vue.$vuepress.registerPageAsyncComponent(pageKey) }