Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

vuepress dev无异常 build报错

如题,在进行本地开发时无异常,一打包就报错
以下是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'
};

`
以下是目录结构
image

以下是报错信息

`

---> <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

`


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

已解决,换了一个主题就好了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...