theme-next-docs
theme-next-docs copied to clipboard
Unhandled rejection TypeError: path.substring is not a function
hexo g
Unhandled rejection TypeError: path.substring is not a function
at Object.urlForHelper (/Users/jack/ProjectsMy/hexo-jacks/node_modules/hexo/lib/plugins/helper/url_for.js:9:31)
at wrapper (/Users/jack/ProjectsMy/hexo-jacks/node_modules/lodash/lodash.js:4962:19)
at eval (eval at
same proplem...
这个怎么解决?
信息太少了,可能的原因有很多。
我觉得可能是在主题配置文件中的 rss配置的问题,当我设置为true 的时候,再次部署,就会报这样的错误, 然而我,不设置它,就不会报错了,
就是设置rss的问题。
主题配置文件默认开启RSS功能,安装完RSS插件,generate时能够生成atom.xml。 也就是说开启并不需要设置为true(rss: 即可),当你想要关掉的时候才设置为false(rss: false).
楼上正解,谢谢你的答案,困扰了我一天了