everfu / hexo-theme-solitude

一款设计师风格的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。
https://www.efu.me
MIT License
441 stars 38 forks source link

[Bug]: #306

Closed CoutureOne closed 1 week ago

CoutureOne commented 1 week ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Mac/Linux

运行的Hexo版本是?

Hexo 7.0.0

你所使用的主题版本是稳定/最新?

稳定版(main)

问题描述 😯

image

更新最新的版本运行以后出现下面报错

终端日志 📒

INFO Start processing INFO 0 (wish), 3 (do),11 (collect) book loaded in 335 ms INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop. Unhandled rejection TypeError: /Users/couture/MyBlog/themes/solitude/layout/includes/inject/body.pug:21 19| if theme.mermaid 20| script(src=url_for(theme.cdn.mermaid_js))

21| if theme.post.share.list.includes('qrcode') 22| script(src=url_for(theme.cdn.qrcode)) 23| 24| if theme.display_mode.universe

Cannot read properties of null (reading 'includes') at eval (eval at wrap (/Users/couture/MyBlog/node_modules/pug-runtime/wrap.js:6:10), :11982:27) at template (eval at wrap (/Users/couture/MyBlog/node_modules/pug-runtime/wrap.js:6:10), :12896:7) at _View._compiled (/Users/couture/MyBlog/node_modules/hexo/dist/theme/view.js:123:67) at _View.render (/Users/couture/MyBlog/node_modules/hexo/dist/theme/view.js:48:21) at /Users/couture/MyBlog/node_modules/hexo/dist/hexo/index.js:60:29 at tryCatcher (/Users/couture/MyBlog/node_modules/bluebird/js/release/util.js:16:23) at /Users/couture/MyBlog/node_modules/bluebird/js/release/method.js:15:34 at RouteStream._read (/Users/couture/MyBlog/nodemodules/hexo/dist/hexo/router.js:43:9) at Readable.read (node:internal/streams/readable:737:12) at resume (node:internal/streams/readable:1255:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

^CINFO See you again

everfu commented 1 week ago

已修复