I encountered some problems when using hexo-related-popular-posts:
Steps to reproduce the behavior
hexo clean
hexo g
FATAL {
err: TypeError: Cannot read property 'length' of undefined
at module.exports (E:\My_blog\node_modules\hexo-related-popular-posts\lib\cache.js:26:89)
at Hexo.<anonymous> (E:\My_blog\node_modules\hexo-related-popular-posts\index.js:171:34)
at Hexo.tryCatcher (E:\My_blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (E:\My_blog\node_modules\bluebird\js\release\method.js:15:34)
at E:\My_blog\node_modules\hexo\lib\extend\filter.js:67:52
at tryCatcher (E:\My_blog\node_modules\bluebird\js\release\util.js:16:23)
at Object.gotValue (E:\My_blog\node_modules\bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (E:\My_blog\node_modules\bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (E:\My_blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\My_blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\My_blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (E:\My_blog\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (E:\My_blog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (E:\My_blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\My_blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (E:\My_blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
I encountered some problems when using hexo-related-popular-posts:
Steps to reproduce the behavior
Node.js and NPM Information
所有的插件版本,hexo-related-popular-posts@4.0.0,主题配置文件。
https://github.com/next-theme/hexo-theme-next/issues/66