如题,在进行本地开发时无异常,一打包就报错
以下是config.js内容:
`
module.exports = {
title: '买个萝卜',
description: '萝卜的个人文档',
base: "/luobo-doc/",
dest:".vuepress/luobo-doc",
markdown: {
lineNumbers: false // 代码块显示行号
},
themeConfig: {
nav: [
{text: '主页', link: '/'},
{text: '笔记', link: '/note/vue/one'}
],
// 侧边栏配置
sidebar: {
'/note/': [
{
title: "vue",
children: [
'/note/vue/one',
'/note/vue/two'
]
}
]
},
sidebarDepth: 3
},
theme: 'reco'
};
`
以下是目录结构
以下是报错信息
`
---> <PersonalInfo>
<Sidebar>
<Common>
<Anonymous>
<GlobalLayout>
<Root>
error Error rendering /: false
undefined
error Error rendering /note/: false
undefined
error Error rendering /note/vue/one.html: false
undefined
error Error rendering /note/vue/two.html: false
undefined
TypeError: Cannot read property 'list' of undefined
at Proxy.$recoPosts (node_modules/vuepress-theme-reco/mixins/posts.js:7:23)
at Proxy.computedGetter (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvuedistvue.runtime.common.dev.js:4831:15)
at Proxy.render (node_modules/vuepress-theme-reco/components/PersonalInfo.vue?f2e4:1:142)
at VueComponent.Vue._render (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvuedistvue.runtime.common.dev.js:3538:22)
at resolve (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8415:27)
at waitForServerPrefetch (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8287:3)
at renderComponentInner (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8426:3)
at renderComponent (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8383:5)
at RenderContext.renderNode (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8294:5)
at RenderContext.next (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:2598:23)
at cachedWrite (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:2451:9)
at renderElement (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8544:5)
at renderNode (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8296:5)
at resolve (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8421:5)
at waitForServerPrefetch (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8287:3)
at renderComponentInner (E:ools
odejs
ode_global
ode_modulesvuepress
ode_modulesvue-server-rendereruild.dev.js:8426:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `vuepress build docs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! E:ools
odejs
ode_cache\_logs2020-08-17T18_13_48_258Z-debug.log
`
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…