Skip to content

Commit dc7be95

Browse files
telepeninulivz
authored andcommitted
fix($core): variable parent is undefined in build process (#1098)
1 parent dd923d6 commit dc7be95

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/app/components

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/app/components/Content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
if (Vue.$vuepress.isPageExists(pageKey)) {
1414
// In SSR, if a component is not registered with the component option
1515
// vue-server-renderer will not be able to resovle it.
16-
if (!parent.$ssrContext) {
16+
if (!this.$parent.$ssrContext) {
1717
Vue.$vuepress.registerPageAsyncComponent(pageKey)
1818
}
1919

0 commit comments

Comments
 (0)