diff --git a/packages/@vuepress/core/lib/prepare/loadTheme.js b/packages/@vuepress/core/lib/prepare/loadTheme.js index 3a8eedec21..9398c9e3f6 100644 --- a/packages/@vuepress/core/lib/prepare/loadTheme.js +++ b/packages/@vuepress/core/lib/prepare/loadTheme.js @@ -106,7 +106,7 @@ module.exports = async function loadTheme (theme, sourceDir, vuepressDir) { // use default 404 component. if (!layoutComponentMap.NotFound || !fs.existsSync(layoutComponentMap.NotFound.path)) { - layoutComponentMap['404'] = { + layoutComponentMap['NotFound'] = { filename: 'Layout.vue', componentName: 'NotFound', path: path.resolve(__dirname, '../app/components/NotFound.vue'),