Skip to content

Commit

Permalink
fix($core): cannot resolve agreement file from parent theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 22, 2019
1 parent 17ba325 commit 1aaa6e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/node/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ module.exports = class App {
return current
}
if (this.themeAPI.existsParentTheme) {
const parent = path.resolve(this.themeAPI.theme.path, filepath)
const parent = path.resolve(this.themeAPI.parentTheme.path, filepath)
if (fs.existsSync(parent)) {
return parent
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/node/theme-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = class ThemeAPI {
isInternal: true
}
logger.warn(
`[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path},`
`[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path}, `
+ `fallback to default layout: ${fallbackLayoutPath}`
)
}
Expand Down

0 comments on commit 1aaa6e3

Please sign in to comment.