个人博客:https://mmmmmm.me

源码:https://github.com/dataiyangu/dataiyangu.github.io

发布文章遇到:

Unhandled rejection Template render error: (unknown path) [Line 265, Column 814]
  unexpected token: .
    at Object._prettifyError (/Users/leesin/Desktop/blog/node_modules/nunjucks/src/lib.js:36:11)
    at Template.render (/Users/leesin/Desktop/blog/node_modules/nunjucks/src/environment.js:524:21)
    at Environment.renderString (/Users/leesin/Desktop/blog/node_modules/nunjucks/src/environment.js:362:17)
    at Promise (/Users/leesin/Desktop/blog/node_modules/hexo/lib/extend/tag.js:66:9)
    at Promise._execute (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/debuggability.js:313:9)
    at Promise._resolveFromExecutor (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:79:10)
    at Tag.render (/Users/leesin/Desktop/blog/node_modules/hexo/lib/extend/tag.js:64:10)
    at Object.tagFilter [as onRenderEnd] (/Users/leesin/Desktop/blog/node_modules/hexo/lib/hexo/post.js:230:16)
    at Promise.then.then.result (/Users/leesin/Desktop/blog/node_modules/hexo/lib/hexo/render.js:65:19)
    at tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:694:18)
    at _drainQueueStep (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)

一般是markdown合适不对,找到对应的文件(上面不显示,可以通过二分法进行删除排除法,找到错误的),删除,google说是/{/{/}/}不能在{}中包{}

发布文章的时候出现错误:

Template render error: (unknown path) [Line 7, Column 23]
Error: Unable to call the return value of (posts["first"])["updated"]["toISOString"], which is undefined or falsey
at Object.exports.prettifyError (D:\itxuye\node_modules\nunjucks\src\lib.js:34:15)
at D:\itxuye\node_modules\nunjucks\src\environment.js:485:31
at root [as rootRenderFunc](eval at %28D:itxuyenode_modulesnunjuckssrcenvironment.js:564:24%29, :161:3)
at Obj.extend.render (D:\itxuye\node_modules\nunjucks\src\environment.js:478:15)
at Hexo.module.exports (D:\itxuye\node_modules\hexo-generator-feed\lib\generator.js:28:22)
at Hexo.tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (D:\itxuye\node_modules\bluebird\js\release\method.js:15:34)
at D:\itxuye\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (D:\itxuye\node_modules\bluebird\js\release\map.js:57:38)
at MappingPromiseArray.PromiseArray._iterate (D:\itxuye\node_modules\bluebird\js\release\promise_array.js:113:31)

_posts文件中不能一篇文章都没有,可能是我上面的二分法给全部删除文章了出现问题。

代码推送到github,hexo g -d 半天推送不上去

停留在这里不动

[master d43a5a4] Site updated: 2019-01-27 19:19:34
 146 files changed, 168 insertions(+), 168 deletions(-)

家里的网络平常上github有时候都成问题,所以之前就出现过,到公司,用公司的网就没问题了。

记录一次hexo+coding hexo s本都没问题,hexo g -d 样式并未改变的问题。

问题背景:

昨天晚上,将hexo相关的改变push到了coding上,本来我也知道push上去是有一定的反应时间的,不能马上改变,过了一晚上还是不行,第二天通过问客服,得到了解决的办法。

解决方法:

将coding pages停止服务重新开启,重新拉取代码,重新配置域名。

另外,修改代码,白天push上去改变的比晚上快很多,具体原因不详~

hexo 问题记录:hexo server的时候报Template render error : (unknown path) [Line 7, Column 23

emplate render error: (unknown path) [Line 7, Column 23]
Error: Unable to call the return value of (posts["first"])["updated"]["toISOString"], which is undefined or falsey
at Object.exports.prettifyError (D:\itxuye\node_modules\nunjucks\src\lib.js:34:15)
at D:\itxuye\node_modules\nunjucks\src\environment.js:485:31
at root [as rootRenderFunc](eval at %28D:itxuyenode_modulesnunjuckssrcenvironment.js:564:24%29, :161:3)
at Obj.extend.render (D:\itxuye\node_modules\nunjucks\src\environment.js:478:15)
at Hexo.module.exports (D:\itxuye\node_modules\hexo-generator-feed\lib\generator.js:28:22)
at Hexo.tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (D:\itxuye\node_modules\bluebird\js\release\method.js:15:34)
at D:\itxuye\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (D:\itxuye\node_modules\bluebird\js\release\map.js:57:38)
at MappingPromiseArray.PromiseArray._iterate (D:\itxuye\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (D:\itxuye\node_modules\bluebird\js\release\promise_array.js:77:10)
at new MappingPromiseArray (D:\itxuye\node_modules\bluebird\js\release\map.js:25:10)
at map (D:\itxuye\node_modules\bluebird\js\release\map.js:152:12)
at Function.Promise.map (D:\itxuye\node_modules\bluebird\js\release\map.js:160:12)
at D:\itxuye\node_modules\hexo\lib\hexo\index.js:334:20
at tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\itxuye\node_modules\bluebird\js\release\promise.js:504:31)
at Promise._settlePromise (D:\itxuye\node_modules\bluebird\js\release\promise.js:561:18)
at Promise._settlePromise0 (D:\itxuye\node_modules\bluebird\js\release\promise.js:606:10)
at Promise._settlePromises (D:\itxuye\node_modules\bluebird\js\release\promise.js:685:18)
at Async._drainQueue (D:\itxuye\node_modules\bluebird\js\release\async.js:138:16)
02:09:00.737 DEBUG Generator: asset
02:09:00.741 DEBUG Database saved
02:09:00.742 FATAL (unknown path) [Line 7, Column 23]
Error: Unable to call the return value of (posts["first"])["updated"]["toISOString"], which is undefined or falsey
Template render error: (unknown path) [Line 7, Column 23]
Error: Unable to call the return value of (posts["first"])["updated"]["toISOString"], which is undefined or falsey
at Object.exports.prettifyError (D:\itxuye\node_modules\nunjucks\src\lib.js:34:15)
at D:\itxuye\node_modules\nunjucks\src\environment.js:485:31
at root [as rootRenderFunc](eval at %28D:itxuyenode_modulesnunjuckssrcenvironment.js:564:24%29, :161:3)
at Obj.extend.render (D:\itxuye\node_modules\nunjucks\src\environment.js:478:15)
at Hexo.module.exports (D:\itxuye\node_modules\hexo-generator-feed\lib\generator.js:28:22)
at Hexo.tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (D:\itxuye\node_modules\bluebird\js\release\method.js:15:34)
at D:\itxuye\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (D:\itxuye\node_modules\bluebird\js\release\map.js:57:38)
at MappingPromiseArray.PromiseArray._iterate (D:\itxuye\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (D:\itxuye\node_modules\bluebird\js\release\promise_array.js:77:10)
at new MappingPromiseArray (D:\itxuye\node_modules\bluebird\js\release\map.js:25:10)
at map (D:\itxuye\node_modules\bluebird\js\release\map.js:152:12)
at Function.Promise.map (D:\itxuye\node_modules\bluebird\js\release\map.js:160:12)
at D:\itxuye\node_modules\hexo\lib\hexo\index.js:334:20
at tryCatcher (D:\itxuye\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\itxuye\node_modules\bluebird\js\release\promise.js:504:31)
at Promise._settlePromise (D:\itxuye\node_modules\bluebird\js\release\promise.js:561:18)
at Promise._settlePromise0 (D:\itxuye\node_modules\bluebird\js\release\promise.js:606:10)
at Promise._settlePromises (D:\itxuye\node_modules\bluebird\js\release\promise.js:685:18)
at Async._drainQueue (D:\itxuye\node_modules\bluebird\js\release\async.js:138:16

可能你删除_posts文件夹下的 hello-world.md文件,_posts文件夹下面不能一个文件都没有。

hexo发布文章报错记录:Unhandled rejection TypeError: Cannot set property ‘lastIndex’ of undefined

错误代码:

Unhandled rejection TypeError: Cannot set property 'lastIndex' of undefined
    at highlight (/Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:511:35)
    at /Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:561:21
    at Array.forEach (<anonymous>)
    at Object.highlightAuto (/Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:560:40)
    at /Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:117:25
    at highlight (/Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:120:7)
    at highlightUtil (/Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:22:14)
    at /Users/leesin/Desktop/blog/node_modules/hexo/lib/plugins/filter/before_post_render/backtick_code_block.js:62:15
    at String.replace (<anonymous>)
    at Hexo.backtickCodeBlock (/Users/leesin/Desktop/blog/node_modules/hexo/lib/plugins/filter/before_post_render/backtick_code_block.js:14:31)
    at Hexo.tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/method.js:15:34)
    at Promise.each.filter (/Users/leesin/Desktop/blog/node_modules/hexo/lib/extend/filter.js:63:65)
    at tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Object.gotValue (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/reduce.js:155:18)
    at Object.gotAccum (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/reduce.js:144:25)
    at Object.tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromiseCtx (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:606:10)
    at _drainQueueStep (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:131:9)

Unhandled rejection TypeError: Cannot set property 'lastIndex' of undefined
    at highlight (/Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:511:35)
    at /Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:561:21
    at Array.forEach (<anonymous>)
    at Object.highlightAuto (/Users/leesin/Desktop/blog/node_modules/highlight.js/lib/highlight.js:560:40)
    at /Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:117:25
    at highlight (/Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:120:7)
    at highlightUtil (/Users/leesin/Desktop/blog/node_modules/hexo-util/lib/highlight.js:22:14)
    at /Users/leesin/Desktop/blog/node_modules/hexo/lib/plugins/filter/before_post_render/backtick_code_block.js:62:15
    at String.replace (<anonymous>)
    at Hexo.backtickCodeBlock (/Users/leesin/Desktop/blog/node_modules/hexo/lib/plugins/filter/before_post_render/backtick_code_block.js:14:31)
    at Hexo.tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/method.js:15:34)
    at Promise.each.filter (/Users/leesin/Desktop/blog/node_modules/hexo/lib/extend/filter.js:63:65)
    at tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Object.gotValue (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/reduce.js:155:18)
    at Object.gotAccum (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/reduce.js:144:25)
    at Object.tryCatcher (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromiseCtx (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/promise.js:606:10)
    at _drainQueueStep (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leesin/Desktop/blog/node_modules/bluebird/js/release/async.js:131:9)

解决:

hexo根目录下面的 auto_detect设置为false

这个配置是用来自动查错的。

原因:

md文章的格式不对,可是字数很多,错误可能是代码块的格式不对,这个时候就把这个配置置为false就行了。

hexo 错误汇总的更多相关文章

  1. Entity Framework学习笔记——错误汇总

    之前的小项目做完了,到了总结经验和更新学习笔记的时间了.开始正题之前先啰嗦一下,对之前的学习目标进行一个调整:“根据代码生成表”与“生成数据库脚本和变更脚本”合并为“Code First模式日常使用篇 ...

  2. 李洪强iOS开发之OC常见错误汇总

    // //  main.m //  16 - 常见错误汇总 // //  Created by vic fan on 16/7/13. //  Copyright © 2016年 李洪强. All r ...

  3. Python常见的错误汇总

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 错误: [错误分析]第二个参数必须为类,否则会报TypeError,所以正确的应 ...

  4. PHP常见错误汇总

    日常开发和调试的时候,经常会遇到一些错误,光怪陆离的不知所以,所以,特此将错误汇总一下,借鉴!!! 1. 原因分析:  一般可能是该文件出现了问题,检查一下代码和格式,是否出现开始的地方出现了空格,或 ...

  5. Quartus II 中 Verilog 常见警告/错误汇总

    Verilog 常见错误汇总 1.Found clock-sensitive change during active clock edge at time <time> on regis ...

  6. android studio 错误汇总以及解决办法

    android studio 错误汇总以及解决办法  参考 https://www.jianshu.com/p/7c7de6562231 问题1. Error:Execution failed for ...

  7. 编程中易犯错误汇总:一个综合案例.md

    # 11编程中易犯错误汇总:一个综合案例 在上一篇文章中,我们学习了如何区分好的代码与坏的代码,如何写好代码.所谓光说不练假把式,在这篇文章中,我们就做一件事——一起来写代码.首先,我会先列出问题,然 ...

  8. react 报红错误汇总

    react  报红错误汇总 一.Uncaught TypeError: Cannot read property 'value' of undefined 未知类型错:无法读取未定义的属性“value ...

  9. Jmeter工具做性能测试 常见的错误汇总

    在Win机器上用Jmeter做性能测试,汇总下我自身遇到的错误和解决方案 java.net.BindException: Address already in use: JVM_Bind 原因分析:压 ...

随机推荐

  1. 文本聚合函数(wm_concat, listagg, group_concat, string_agg)

    实现目标   1.聚合文本   2.聚合文本(去重)   3.聚合文本(去重),按照指定字段排序   4.聚合文本(去重),按照指定字段排序,替换默认逗号分隔符 MySQL: group_concat ...

  2. 针对list<object>中的对象数据的一些简单处理

    一    首先创建一个实体类(PersonData ): package hello; public class PersonData { String Id; String Name; String ...

  3. JUC 一 线程池

    线程 线程,是程序执行的最小单元.线程是进程中的其中一个实体,是被系统独立调度和分派的基本单位 它可与同属一个进程的其它线程共享进程所拥有的全部资源. 一个线程可以创建和撤消另一个线程,同一进程中的多 ...

  4. poi之Excel上传

    poi之Excel上传 @RequestMapping(value = "/import", method = RequestMethod.POST) public String ...

  5. 60 cuda全局性能优化

    0 引言 cuda线程模型涉及grid的块划分和线程配置,直接影响到全局运算速度.根据文档<CUDA_C_Programming_Guide>,性能优化有三个方面的基本策略. (1)最大化 ...

  6. NX二次开发-UFUN写入本地文本文档uc4524

    1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_cfi.h> 5 #include <uf_ui.h> 6 7 us ...

  7. NX二次开发-UFUN创建倒角UF_MODL_create_chamfer

    NX9+VS2012 #include <uf.h> #include <uf_modl.h> UF_initialize(); //创建块 UF_FEATURE_SIGN S ...

  8. 制作windows puppet openstack镜像

    由于电信需要远程部署软件,拟使用puppet进行远程服务管理 前提 windows系统已经安装 windows已经安装virtio driver 远程桌面开启,最好关闭防火墙 设置MTU 在没有安装c ...

  9. STM32F103

    memory map • Four masters: – Cortex® -M3 core DCode bus (D-bus) and System bus (S-bus)– GP-DMA1 & ...

  10. JAVA泛型知识(一)

    Java泛型知识(二)<? extends T>和<? super T> Java1.5泛型指南中文版(Java1.5 Generic Tutorial) 目        录 ...