0%

hexo-g 报错 Cannot set property ‘lastIndex’ of undefined

hexo-g 报错 Cannot set property ‘lastIndex’ of undefined

作者:草梅友仁

http://huanyouchen.github.io/2018/05/30/hexo-g-error-TypeError-cannot-set-property-lastIndex-of-undefined/

使用 hexo -g 时候报错:TypeError: Cannot set property ‘lastIndex’ of undefined

解决方法:

在配置文件_config.yml 中将 highlight 选项的 auto_detect 设为 false

方法来自:https://github.com/hexojs/hexo/issues/1627

本文作者:草梅友仁
本文地址: https://blog.cmyr.ltd/archives/4b3a011e.html
版权声明:转载请注明出处!

坚持原创技术分享,您的支持将鼓励我继续创作!