hexo博客的TypeError: Cannot set property lastIndex of undefined错误
这是因为在你的博客中,在用代码段```时没有指明语言,这时候如果你的auto_detect: true,就会产生这个错误。
解决:
找到那篇文章没有指明语言,随便加上一个就行。
如果找不到哪篇博客,
2.1 可以在\myBlog\node_modules\hexo\lib\hexo\render.js中的第51、52行加上
console.log(data.path);
console.log(data.text);
查看在哪篇博客之后出现的问题。
2.2 然后,设置auto_detect: false,
原创
2020-05-22 11:22:15 ·
487 阅读 ·
0 评论