我是靠谱客的博主 虚心金鱼,最近开发中收集的这篇文章主要介绍hexo 异常处理,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

异常内容

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 1, Column 12]
  unknown block tag: aplayer
    at Object.exports.prettifyError (D:myblogblognode_modulesnunjuckssrclib.js:34:15)
    at new_cls.render (D:myblogblognode_modulesnunjuckssrcenvironment.js:469:27)
    at new_cls.renderString (D:myblogblognode_modulesnunjuckssrcenvironment.js:327:21)
    at D:myblogblognode_moduleshexolibextendtag.js:66:9
    at Promise._execute (D:myblogblognode_modulesbluebirdjsreleasedebuggability.js:300:9)
    at Promise._resolveFromExecutor (D:myblogblognode_modulesbluebirdjsreleasepromise.js:481:18)
    at new Promise (D:myblogblognode_modulesbluebirdjsreleasepromise.js:77:14)
    at Tag.render (D:myblogblognode_moduleshexolibextendtag.js:64:10)
    at Object.tagFilter [as onRenderEnd] (D:myblogblognode_moduleshexolibhexopost.js:253:16)
    at D:myblogblognode_moduleshexolibhexorender.js:65:19
    at tryCatcher (D:myblogblognode_modulesbluebirdjsreleaseutil.js:16:23)
    at Promise._settlePromiseFromHandler (D:myblogblognode_modulesbluebirdjsreleasepromise.js:510:31)
    at Promise._settlePromise (D:myblogblognode_modulesbluebirdjsreleasepromise.js:567:18)
    at Promise._settlePromise0 (D:myblogblognode_modulesbluebirdjsreleasepromise.js:612:10)
    at Promise._settlePromises (D:myblogblognode_modulesbluebirdjsreleasepromise.js:691:18)
    at Async._drainQueue (D:myblogblognode_modulesbluebirdjsreleaseasync.js:133:16)
    at Async._drainQueues (D:myblogblognode_modulesbluebirdjsreleaseasync.js:143:10)
    at Immediate.Async.drainQueues (D:myblogblognode_modulesbluebirdjsreleaseasync.js:17:14)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
FATAL (unknown path) [Line 1, Column 12]
  unknown block tag: aplayer
Template render error: (unknown path) [Line 1, Column 12]
  unknown block tag: aplayer
    at Object.exports.prettifyError (D:myblogblognode_modulesnunjuckssrclib.js:34:15)
    at new_cls.render (D:myblogblognode_modulesnunjuckssrcenvironment.js:469:27)
    at new_cls.renderString (D:myblogblognode_modulesnunjuckssrcenvironment.js:327:21)
    at D:myblogblognode_moduleshexolibextendtag.js:66:9
    at Promise._execute (D:myblogblognode_modulesbluebirdjsreleasedebuggability.js:300:9)
    at Promise._resolveFromExecutor (D:myblogblognode_modulesbluebirdjsreleasepromise.js:481:18)
    at new Promise (D:myblogblognode_modulesbluebirdjsreleasepromise.js:77:14)
    at Tag.render (D:myblogblognode_moduleshexolibextendtag.js:64:10)
    at Object.tagFilter [as onRenderEnd] (D:myblogblognode_moduleshexolibhexopost.js:253:16)
    at D:myblogblognode_moduleshexolibhexorender.js:65:19
    at tryCatcher (D:myblogblognode_modulesbluebirdjsreleaseutil.js:16:23)
    at Promise._settlePromiseFromHandler (D:myblogblognode_modulesbluebirdjsreleasepromise.js:510:31)
    at Promise._settlePromise (D:myblogblognode_modulesbluebirdjsreleasepromise.js:567:18)
    at Promise._settlePromise0 (D:myblogblognode_modulesbluebirdjsreleasepromise.js:612:10)
    at Promise._settlePromises (D:myblogblognode_modulesbluebirdjsreleasepromise.js:691:18)
    at Async._drainQueue (D:myblogblognode_modulesbluebirdjsreleaseasync.js:133:16)
    at Async._drainQueues (D:myblogblognode_modulesbluebirdjsreleaseasync.js:143:10)
    at Immediate.Async.drainQueues (D:myblogblognode_modulesbluebirdjsreleaseasync.js:17:14)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)

原因

这类异常一般是文章中使用了大括号 { } 这个特殊字符,且没有转义导致编译不通过

解决方案

可以参考Markdown语法第(0)章-特殊字符 将 { } 的大括号通过
{ } 进行转换

最后

以上就是虚心金鱼为你收集整理的hexo 异常处理的全部内容,希望文章能够帮你解决hexo 异常处理所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部