pp也耶 2021-05-24 18:55 采纳率: 50%
浏览 621
已采纳

Cannot read property 'enable' of undefined +hexo

hexo s没有出错,直接可以去自己博客,但是页面出现不来,然后就显示如下错误

D:\hexo>hexo s
INFO  Validating config
INFO  Start processing
INFO  Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
Unhandled rejection TypeError: D:\hexo\themes\hexo-theme-matery-master\layout\index.ejs:2
    1| <% if (is_home() && page.current === 1) { %>
 >> 2| <%- partial('_partial/index-cover') %>
    3| <% } else { %>
    4|     <%- partial('_partial/bg-cover') %>
    5| <% } %>

D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:68
    66|
    67|             <div class="cover-btns">
 >> 68|                 <a href="<%=
    69|                         [theme.dream, theme.music, theme.video, theme.recommend]
    70|                                 .every(i=>i.enable)? "#indexCard": "#articles"
    71|                         %>" class="waves-effect waves-light btn">

Cannot read property 'enable' of undefined
    at eval (D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:34:45)
    at Array.every (<anonymous>)
    at eval (D:\hexo\themes\hexo-theme-matery-master\layout\_partial\index-cover.ejs:34:34)
    at index-cover (D:\hexo\node_modules\ejs\lib\ejs.js:682:17)
    at _View._compiledSync (D:\hexo\node_modules\hexo\lib\theme\view.js:132:24)
    at _View.renderSync (D:\hexo\node_modules\hexo\lib\theme\view.js:59:25)
    at Object.partial (D:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
    at eval (D:\hexo\themes\hexo-theme-matery-master\layout\index.ejs:11:17)
    at index (D:\hexo\node_modules\ejs\lib\ejs.js:682:17)
    at _View._compiled (D:\hexo\node_modules\hexo\lib\theme\view.js:136:50)
    at _View.render (D:\hexo\node_modules\hexo\lib\theme\view.js:39:17)
    at D:\hexo\node_modules\hexo\lib\hexo\index.js:64:21
    at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at D:\hexo\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (D:\hexo\node_modules\hexo\lib\hexo\router.js:47:5)
    at RouteStream.Readable.read (_stream_readable.js:469:10)
    at resume_ (_stream_readable.js:983:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

  • 写回答

2条回答 默认 最新

  • 有问必答小助手 2021-05-26 17:37
    关注

    您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

    如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

    ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog