From 36dd97a04d940b1116dfbf969b00ad39bc9e49d4 Mon Sep 17 00:00:00 2001 From: Alexey Iskhakov Date: Thu, 3 Oct 2019 12:10:37 +0300 Subject: [PATCH] Update index.js - fix `cannot read property 'path' of undefined` --- packages/@vuepress/core/lib/node/theme-api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vuepress/core/lib/node/theme-api/index.js b/packages/@vuepress/core/lib/node/theme-api/index.js index 31263ef9cf..1776484416 100644 --- a/packages/@vuepress/core/lib/node/theme-api/index.js +++ b/packages/@vuepress/core/lib/node/theme-api/index.js @@ -80,8 +80,8 @@ module.exports = class ThemeAPI { isInternal: true } logger.warn( - `[vuepress] Cannot resolve Layout.vue file in \n ${Layout.path}, ` - + `fallback to default layout: ${fallbackLayoutPath}` + `[vuepress] Cannot resolve Layout.vue file in \n ${layoutDirs.join('\n')}, ` + + `\n fallback to default layout: ${fallbackLayoutPath}` ) } if (!NotFound) {