Skip to content

Commit

Permalink
fix($core): variable parent is undefined in build process (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
telepenin authored and ulivz committed Dec 13, 2018
1 parent dd923d6 commit dc7be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/app/components/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit dc7be95

Please sign in to comment.