It‘s ok to run command hexo cleanhexo ghexo s.
But when I visit the page with related-tag-posts, it will cause an error.
Unhandled rejection TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at validateString (internal/validators.js:112:11)
at Object.join (path.js:375:7)
at getElm (F:\hexo\node_modules\hexo-related-popular-posts\lib\list-json.js:371:28)
at Object.module.exports.getList (F:\hexo\node_modules\hexo-related-popular-posts\lib\list-json.js:383:23)
at module.exports (F:\hexo\node_modules\hexo-related-popular-posts\lib\helper-json.js:3:19)
at Object.<anonymous> (F:\hexo\node_modules\hexo-related-popular-posts\index.js:177:40)
at Object.eval [as tpl] (eval at precompile (F:\hexo\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:5:173)
at compiled (F:\hexo\node_modules\swig-templates\lib\swig.js:664:18)
at Object.eval [as tpl] (eval at precompile (F:\hexo\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:336:136)
at compiled (F:\hexo\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiledSync (F:\hexo\node_modules\hexo\lib\theme\view.js:119:22)
at Theme._View.View.View.renderSync (F:\hexo\node_modules\hexo\lib\theme\view.js:48:23)
at Object.partial (F:\hexo\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at Object.eval [as tpl] (eval at precompile (F:\hexo\node_modules\swig-templates\lib\swig.js:537:13), <anonymous>:142:119)
at compiled (F:\hexo\node_modules\swig-templates\lib\swig.js:664:18)
at Theme._View.View._compiled (F:\hexo\node_modules\hexo\lib\theme\view.js:123:48)
at Theme._View.View.View.render (F:\hexo\node_modules\hexo\lib\theme\view.js:29:15)
at F:\hexo\node_modules\hexo\lib\hexo\index.js:349:21
at tryCatcher (F:\hexo\node_modules\bluebird\js\release\util.js:16:23)
at F:\hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\hexo\node_modules\hexo\lib\hexo\router.js:123:3)
at RouteStream.Readable.read (_stream_readable.js:481:10)
at resume_ (_stream_readable.js:960:12)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
Node version: v12.8.1 theme: Next
Plugin version
It‘s ok to run command
hexo clean
hexo g
hexo s
. But when I visit the page with related-tag-posts, it will cause an error.It just happens sometimes QAQ