You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered some problems when using hexo-related-popular-posts:
05:41:55.845 ERROR Render HTML failed: 2020/02/22/flexbox-use-cases/index.html
TypeError: Cannot read property 'replace' of null
at Hexo.externalLinkFilter (/Users/anran/project_my/blog/node_modules/hexo/lib/plugins/filter/after_render/external_link.js:22:15)
at Hexo.tryCatcher (/Users/anran/project_my/blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/Users/anran/project_my/blog/node_modules/bluebird/js/release/method.js:15:34)
at /Users/anran/project_my/blog/node_modules/hexo/lib/extend/filter.js:62:52
at tryCatcher (/Users/anran/project_my/blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/Users/anran/project_my/blog/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/Users/anran/project_my/blog/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/Users/anran/project_my/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/anran/project_my/blog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/anran/project_my/blog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/Users/anran/project_my/blog/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/Users/anran/project_my/blog/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/Users/anran/project_my/blog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/anran/project_my/blog/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/anran/project_my/blog/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
After debugging, I found that the error is in list-json.js. in the getElm function tried to add ret.date, But an error occurred during the assignment.
I encountered some problems when using
hexo-related-popular-posts
:After debugging, I found that the error is in list-json.js. in the
getElm
function tried to addret.date
, But an error occurred during the assignment.The test code and test log are as follows:
It can be found in the log:
moment
caused an error while initializinglist.date
, which caused the subsequentformatDate
log to not be output.If I delete the code about
moment (list.date)
, hexo will work normally.The current configuration of hexo is as follows:
The text was updated successfully, but these errors were encountered: