Skip to content

Commit 1aaa6e3

Browse files
committed
fix($core): cannot resolve agreement file from parent theme
1 parent 17ba325 commit 1aaa6e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vuepress/core/lib/node/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ module.exports = class App {
385385
return current
386386
}
387387
if (this.themeAPI.existsParentTheme) {
388-
const parent = path.resolve(this.themeAPI.theme.path, filepath)
388+
const parent = path.resolve(this.themeAPI.parentTheme.path, filepath)
389389
if (fs.existsSync(parent)) {
390390
return parent
391391
}

packages/@vuepress/core/lib/node/theme-api/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = class ThemeAPI {
8080
isInternal: true
8181
}
8282
logger.warn(
83-
`[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path},`
83+
`[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path}, `
8484
+ `fallback to default layout: ${fallbackLayoutPath}`
8585
)
8686
}

0 commit comments

Comments
 (0)