Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 hexo generate时报错,Template render error: (unknown path) [Line 8, Column 25] #83

Open
cxwen opened this issue Jul 5, 2020 · 0 comments

Comments

@cxwen
Copy link

cxwen commented Jul 5, 2020

$ hexo clean && hexo generate
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 8, Column 25]
  Error: Unable to call `the return value of (posts["first"])["updated"]["toISOString"]`, which is undefined or falsey
    at Object._prettifyError (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/nunjucks/src/lib.js:36:11)
    at /Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/nunjucks/src/environment.js:561:19
    at Template.root [as rootRenderFunc] (eval at _compile (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/nunjucks/src/environment.js:631:18), <anonymous>:214:3)
    at Template.render (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/nunjucks/src/environment.js:550:10)
    at Hexo.module.exports (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/hexo-generator-feed/lib/generator.js:40:22)
    at Hexo.tryCatcher (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/method.js:15:34)
    at /Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/hexo/lib/hexo/index.js:318:20
    at tryCatcher (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/chengxiaowen/go/src/github.com/cxwen/cxwen-blog/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:439:21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant