Skip to content

Commit 8d07675

Browse files
Raiondesuulivz
authored andcommitted
fix($core): cannot read property 'path' of undefined (#1906)
1 parent dbda574 commit 8d07675

File tree

1 file changed

+2
-2
lines changed
  • packages/@vuepress/core/lib/node/theme-api

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ module.exports = class ThemeAPI {
8080
isInternal: true
8181
}
8282
logger.warn(
83-
`[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path}, `
84-
+ `fallback to default layout: ${fallbackLayoutPath}`
83+
`[vuepress] Cannot resolve Layout.vue file in \n ${layoutDirs.join('\n')}, `
84+
+ `\n fallback to default layout: ${fallbackLayoutPath}`
8585
)
8686
}
8787
if (!NotFound) {

0 commit comments

Comments
 (0)