为什么我只是修改了_config.yml,本地和博客都无法预览了?显示为空白页。

139 views
Skip to first unread message

Themixet Holo

unread,
Apr 9, 2018, 8:16:01 AM4/9/18
to he...@googlegroups.com
如题。
使用的主题:Hexo,Minst
hexo版本:5.1.4

以下是报错信息:

Unhandled rejection Error: ENOENT: no such file or directory, open '/Users/felixxiong/FelixXiongHexoFolder/themes/next/layout/_scripts/schemes/.swig'


    at Object.fs.openSync (fs.js:646:18)


    at Object.fs.readFileSync (fs.js:551:33)


    at Object.ret.load (/Users/felixxiong/FelixXiongHexoFolder/node_modules/swig-templates/lib/loaders/filesystem.js:55:15)


    at exports.Swig.compileFile (/Users/felixxiong/FelixXiongHexoFolder/node_modules/swig-templates/lib/swig.js:694:31)


    at Object.eval [as tpl] (eval at precompile (/Users/felixxiong/FelixXiongHexoFolder/node_modules/swig-templates/lib/swig.js:497:13), <anonymous>:904:18)


    at compiled (/Users/felixxiong/FelixXiongHexoFolder/node_modules/swig-templates/lib/swig.js:618:18)


    at Theme._View.View._compiled.locals [as _compiled] (/Users/felixxiong/FelixXiongHexoFolder/node_modules/hexo/lib/theme/view.js:124:48)


    at Theme._View.View.View.render (/Users/felixxiong/FelixXiongHexoFolder/node_modules/hexo/lib/theme/view.js:29:15)


    at route.set (/Users/felixxiong/FelixXiongHexoFolder/node_modules/hexo/lib/hexo/index.js:386:29)


    at tryCatcher (/Users/felixxiong/FelixXiongHexoFolder/node_modules/bluebird/js/release/util.js:16:23)


    at /Users/felixxiong/FelixXiongHexoFolder/node_modules/bluebird/js/release/method.js:15:34


    at RouteStream._read (/Users/felixxiong/FelixXiongHexoFolder/node_modules/hexo/lib/hexo/router.js:134:3)


    at RouteStream.Readable.read (_stream_readable.js:442:10)


    at resume_ (_stream_readable.js:822:12)


    at _combinedTickCallback (internal/process/next_tick.js:138:11)


    at process._tickCallback (internal/process/next_tick.js:180:9)


GitHub issus链接:NEXT主题,更新了博客内容,显示空白,本地也无法预览 #3114
相应的issue回答:在主题配置文件配置友链后,hexo g报错 #737(因为更新已被关闭)

Themixet Holo

unread,
Apr 10, 2018, 5:43:11 AM4/10/18
to Hexo
已经解决了。

在 2018年4月9日星期一 UTC+8下午8:16:01,Themixet Holo写道:

zhulon...@gmail.com

unread,
Nov 11, 2018, 5:49:43 AM11/11/18
to Hexo


在 2018年4月9日星期一 UTC+8下午8:16:01,Themixet Holo写道:
如题。

你好,我遇到了同样的问题,请问你是如何解决的?? 

Themixet Holo

unread,
Nov 19, 2018, 12:04:37 AM11/19/18
to Hexo
不知道你现在问题是否解决,我仔细检查了文件,可能是因为注释之间没有加空格或者是没有删去的原因。

在 2018年11月11日星期日 UTC+8下午6:49:43,zhulon...@gmail.com写道:
Reply all
Reply to author
Forward
0 new messages