Closed chaofanx closed 8 months ago
大概是最近几个版本引入的吧,这几个失败的文章刚写完那会是没问题了,后来就是dependabot升级了几次依赖版本
麻烦你试一下 main 分支最新代码是否修复了
麻烦你试一下 main 分支最新代码是否修复了
怎么使用main分支啊,下载到themes目录吗
对的,我这里没有报错,也不知道改好了没
对的,我这里没有报错,也不知道改好了没
更新到最新版本了,发现是好久没有按照release note搞配置了,修改适配了一下新的wiki和links方式,但是编译还是有问题
01:20:32.636 | Restored build cache
01:20:32.716 | Running "vercel build"
01:20:33.194 | Vercel CLI 33.0.2
01:20:34.679 | Installing dependencies...
01:20:34.995 | yarn install v1.22.17
01:20:35.051 | warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
01:20:35.054 | [1/4] Resolving packages...
01:20:35.293 | success Already up-to-date.
01:20:35.296 | Done in 0.31s.
01:20:35.312 | Running "yarn run build"
01:20:35.489 | yarn run v1.22.17
01:20:35.509 | $ hexo generate
01:20:36.102 | INFO Validating config
01:20:36.512 | INFO Welcome to Stellar 1.23.0
01:20:36.512 | DOCS https://xaoxuu.com/wiki/stellar/
01:20:36.512 | REPO https://github.com/xaoxuu/hexo-theme-stellar.git
01:20:36.512 |
01:20:36.513 | INFO Start processing
01:20:38.256 | INFO Files loaded in 1.74 s
01:20:38.578 | [41mERROR[49m
01:20:38.579 | [33mTypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:39
01:20:38.579 | 37\| <%- partial('_partial/plugins/ai/tianli_gpt') %>
01:20:38.579 | 38\| <% } %>
01:20:38.580 | >> 39\| <%- partial('_partial/main/article/article_footer') %>
01:20:38.580 | 40\| </article>
01:20:38.580 | 41\| <%- partial('_partial/main/article/read_next') %>
01:20:38.581 | 42\| <%- partial('_partial/plugins/comments/layout') %>
01:20:38.581 |
01:20:38.581 | /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
01:20:38.581 | 144\| }
01:20:38.581 | 145\| %>
01:20:38.582 | >> 146\| <%- layoutDiv(); %>
01:20:38.582 | 147\|
01:20:38.582 |
01:20:38.582 | text.replace is not a function
01:20:38.582 | at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
01:20:38.583 | at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
01:20:38.583 | at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
01:20:38.583 | at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
01:20:38.583 | at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
01:20:38.583 | at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
01:20:38.584 | at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
01:20:38.587 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
01:20:38.587 | at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.587 | at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
01:20:38.588 | at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
01:20:38.588 | at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
01:20:38.588 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":76:17)
01:20:38.588 | at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.588 | at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
01:20:38.589 | at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)[39m
01:20:38.600 | [41mERROR[49m
01:20:38.600 | [33mTypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:39
01:20:38.601 | 37\| <%- partial('_partial/plugins/ai/tianli_gpt') %>
01:20:38.605 | 38\| <% } %>
01:20:38.606 | >> 39\| <%- partial('_partial/main/article/article_footer') %>
01:20:38.606 | 40\| </article>
01:20:38.606 | 41\| <%- partial('_partial/main/article/read_next') %>
01:20:38.606 | 42\| <%- partial('_partial/plugins/comments/layout') %>
01:20:38.606 |
01:20:38.612 | /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
01:20:38.613 | 144\| }
01:20:38.615 | 145\| %>
01:20:38.615 | >> 146\| <%- layoutDiv(); %>
01:20:38.615 | 147\|
01:20:38.615 |
01:20:38.616 | text.replace is not a function
01:20:38.616 | at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
01:20:38.616 | at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
01:20:38.616 | at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
01:20:38.616 | at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
01:20:38.617 | at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
01:20:38.617 | at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
01:20:38.617 | at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
01:20:38.618 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
01:20:38.618 | at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.618 | at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
01:20:38.618 | at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
01:20:38.618 | at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
01:20:38.618 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":76:17)
01:20:38.619 | at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.619 | at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
01:20:38.619 | at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)[39m
01:20:38.629 | [41mERROR[49m
01:20:38.630 | [33mTypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs:29
01:20:38.630 | 27\| <%- partial('_partial/plugins/ai/tianli_gpt') %>
01:20:38.630 | 28\| <% } %>
01:20:38.630 | >> 29\| <%- partial('_partial/main/article/article_footer') %>
01:20:38.631 | 30\| </article>
01:20:38.631 | 31\| <%- partial('_partial/main/article/read_next') %>
01:20:38.631 | 32\| <%- partial('_partial/main/article/related_posts') %>
01:20:38.631 |
01:20:38.631 | /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
01:20:38.632 | 144\| }
01:20:38.632 | 145\| %>
01:20:38.632 | >> 146\| <%- layoutDiv(); %>
01:20:38.632 | 147\|
01:20:38.632 |
01:20:38.632 | text.replace is not a function
01:20:38.633 | at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
01:20:38.633 | at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
01:20:38.633 | at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
01:20:38.633 | at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
01:20:38.633 | at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
01:20:38.633 | at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
01:20:38.634 | at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
01:20:38.634 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
01:20:38.634 | at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.634 | at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
01:20:38.634 | at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
01:20:38.635 | at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
01:20:38.635 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs":59:17)
01:20:38.635 | at post (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.635 | at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
01:20:38.635 | at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)[39m
01:20:38.636 | [41mERROR[49m
01:20:38.636 | [33mTypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs:29
01:20:38.636 | 27\| <%- partial('_partial/plugins/ai/tianli_gpt') %>
01:20:38.636 | 28\| <% } %>
01:20:38.636 | >> 29\| <%- partial('_partial/main/article/article_footer') %>
01:20:38.637 | 30\| </article>
01:20:38.637 | 31\| <%- partial('_partial/main/article/read_next') %>
01:20:38.637 | 32\| <%- partial('_partial/main/article/related_posts') %>
01:20:38.637 |
01:20:38.637 | /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
01:20:38.638 | 144\| }
01:20:38.638 | 145\| %>
01:20:38.638 | >> 146\| <%- layoutDiv(); %>
01:20:38.638 | 147\|
01:20:38.638 |
01:20:38.638 | text.replace is not a function
01:20:38.639 | at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
01:20:38.640 | at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
01:20:38.640 | at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
01:20:38.640 | at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
01:20:38.640 | at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
01:20:38.641 | at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
01:20:38.641 | at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
01:20:38.641 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
01:20:38.641 | at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.641 | at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
01:20:38.642 | at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
01:20:38.642 | at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
01:20:38.642 | at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs":59:17)
01:20:38.642 | at post (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
01:20:38.642 | at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
01:20:38.642 | at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)[39m
01:20:39.832 | INFO Generated: posts/49b1cc7e.html
01:20:39.834 | INFO Generated: about/index.html
01:20:39.835 | INFO Generated: friends/index.html
01:20:39.835 | INFO Generated: notes/index.html
01:20:39.835 | INFO Generated: archives/index.html
01:20:39.836 | INFO Generated: archives/2021/index.html
01:20:39.836 | INFO Generated: archives/2021/04/index.html
说 text.replace is not a function
但我没有搜到 text.replace
不行的话你把 _config.stellar.yml
文件里全注释掉试一下行不行
说
text.replace is not a function
但我没有搜到text.replace
不行的话你把
_config.stellar.yml
文件里全注释掉试一下行不行
😭注释了也一样,报错是相同的,是不是依赖版本不对
"dependencies": {
"hexo": "^7.0.0",
"hexo-abbrlink": "^2.2.1",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-related-popular-posts": "^5.0.1",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-kramed": "^0.1.4",
"hexo-renderer-stylus": "^3.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-stellar": "^1.23.0"
}
似乎是这个插件的报错: hexo-renderer-kramed
01:20:38.638 | text.replace is not a function
01:20:38.639 | at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
部分文章编译失败,本地编译也是如此