xaoxuu / hexo-theme-stellar

内置文档系统的简约商务风Hexo主题,支持大量的标签组件和动态数据组件。
https://xaoxuu.com/wiki/stellar/
MIT License
1.28k stars 317 forks source link

文档生成失败 #341

Closed chaofanx closed 8 months ago

chaofanx commented 8 months ago

部分文章编译失败,本地编译也是如此

[22:27:04.935] Running build in Washington, D.C., USA (East) – iad1
[22:27:05.221] Cloning github.com (Branch: master, Commit: 10470df)
[22:27:05.307] Skipping build cache, deployment was triggered without cache.
[22:27:05.896] Cloning completed: 675.027ms
[22:27:06.174] Running "vercel build"
[22:27:06.685] Vercel CLI 33.0.1
[22:27:07.376] Installing dependencies...
[22:27:07.703] yarn install v1.22.17
[22:27:07.759] 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.
[22:27:07.762] [1/4] Resolving packages...
[22:27:07.995] [2/4] Fetching packages...
[22:27:18.495] [3/4] Linking dependencies...
[22:27:21.638] [4/4] Building fresh packages...
[22:27:22.518] Done in 14.82s.
[22:27:22.545] Running "yarn run build"
[22:27:22.723] yarn run v1.22.17
[22:27:22.742] $ hexo generate
[22:27:23.425] INFO  Validating config
[22:27:23.901] INFO  Welcome to Stellar 1.22.1
[22:27:23.902] DOCS  https://xaoxuu.com/wiki/stellar/
[22:27:23.902] REPO  https://github.com/xaoxuu/hexo-theme-stellar.git
[22:27:23.902]   
[22:27:23.902] INFO  Start processing
[22:27:25.293] INFO  Files loaded in 1.39 s
[22:27:25.587] ERROR 
[22:27:25.588] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.588]     33|     <%- partial('mermaid') %>
[22:27:25.588]     34|   <% } %>
[22:27:25.589]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.589]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.589]     37|   <%- layoutTitle() %>
[22:27:25.589]     38|   <%- page.content %>
[22:27:25.590] 
[22:27:25.593] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.593]     121| }
[22:27:25.594]     122| %>
[22:27:25.594]  >> 123| <%- layoutDiv() %>
[22:27:25.594]     124| 
[22:27:25.595] 
[22:27:25.595] Cannot read properties of undefined (reading 'repo')
[22:27:25.595]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.596]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.596]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.596]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.596]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.597]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.597]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.597]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.597]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.597]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.597]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.598]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.602]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.602]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.602]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.602]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.604] ERROR 
[22:27:25.604] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.605]     33|     <%- partial('mermaid') %>
[22:27:25.605]     34|   <% } %>
[22:27:25.605]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.606]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.606]     37|   <%- layoutTitle() %>
[22:27:25.607]     38|   <%- page.content %>
[22:27:25.607] 
[22:27:25.607] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.608]     121| }
[22:27:25.608]     122| %>
[22:27:25.608]  >> 123| <%- layoutDiv() %>
[22:27:25.608]     124| 
[22:27:25.609] 
[22:27:25.609] Cannot read properties of undefined (reading 'repo')
[22:27:25.609]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.609]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.609]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.609]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.615]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.616]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.616]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.616]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.616]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.616]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.616]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.617]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.617]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.617]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.617]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.617]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.618] ERROR 
[22:27:25.618] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.618]     33|     <%- partial('mermaid') %>
[22:27:25.618]     34|   <% } %>
[22:27:25.618]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.618]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.618]     37|   <%- layoutTitle() %>
[22:27:25.619]     38|   <%- page.content %>
[22:27:25.619] 
[22:27:25.619] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.619]     121| }
[22:27:25.619]     122| %>
[22:27:25.619]  >> 123| <%- layoutDiv() %>
[22:27:25.619]     124| 
[22:27:25.620] 
[22:27:25.620] Cannot read properties of undefined (reading 'repo')
[22:27:25.620]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.620]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.620]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.620]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.621]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.621]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.621]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.621]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.623]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.623]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.623]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.623]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.625]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.625]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.625]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.625]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.625] ERROR 
[22:27:25.625] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.625]     33|     <%- partial('mermaid') %>
[22:27:25.626]     34|   <% } %>
[22:27:25.626]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.626]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.626]     37|   <%- layoutTitle() %>
[22:27:25.626]     38|   <%- page.content %>
[22:27:25.626] 
[22:27:25.626] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.627]     121| }
[22:27:25.627]     122| %>
[22:27:25.627]  >> 123| <%- layoutDiv() %>
[22:27:25.627]     124| 
[22:27:25.627] 
[22:27:25.627] Cannot read properties of undefined (reading 'repo')
[22:27:25.627]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.628]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.628]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.628]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.628]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.628]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.628]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.629]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.629]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.629]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.629]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.629]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.629]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.630]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.630]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.630]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.630] ERROR 
[22:27:25.630] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.630]     33|     <%- partial('mermaid') %>
[22:27:25.630]     34|   <% } %>
[22:27:25.631]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.631]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.631]     37|   <%- layoutTitle() %>
[22:27:25.649]     38|   <%- page.content %>
[22:27:25.649] 
[22:27:25.649] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.649]     121| }
[22:27:25.649]     122| %>
[22:27:25.650]  >> 123| <%- layoutDiv() %>
[22:27:25.650]     124| 
[22:27:25.650] 
[22:27:25.650] Cannot read properties of undefined (reading 'repo')
[22:27:25.650]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.650]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.650]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.650]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.650]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.650]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.650]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.650]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.650]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.650]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.650]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.650]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.650]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.650]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.650]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.650]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.650] ERROR 
[22:27:25.650] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.650]     33|     <%- partial('mermaid') %>
[22:27:25.650]     34|   <% } %>
[22:27:25.650]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.650]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.650]     37|   <%- layoutTitle() %>
[22:27:25.650]     38|   <%- page.content %>
[22:27:25.650] 
[22:27:25.650] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.651]     121| }
[22:27:25.651]     122| %>
[22:27:25.651]  >> 123| <%- layoutDiv() %>
[22:27:25.651]     124| 
[22:27:25.651] 
[22:27:25.651] Cannot read properties of undefined (reading 'repo')
[22:27:25.651]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.651]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.651]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.651]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.651]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.651]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.651]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.651]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.651]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.651]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.651]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.651]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.651]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.651]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.651]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.651]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.651] ERROR 
[22:27:25.651] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.651]     33|     <%- partial('mermaid') %>
[22:27:25.651]     34|   <% } %>
[22:27:25.661]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.661]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.661]     37|   <%- layoutTitle() %>
[22:27:25.662]     38|   <%- page.content %>
[22:27:25.662] 
[22:27:25.662] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.662]     121| }
[22:27:25.662]     122| %>
[22:27:25.662]  >> 123| <%- layoutDiv() %>
[22:27:25.662]     124| 
[22:27:25.663] 
[22:27:25.663] Cannot read properties of undefined (reading 'repo')
[22:27:25.663]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.663]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.663]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.663]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.664]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.664]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.664]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.664]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.664]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.664]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.665]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.665]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.665]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.665]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.665]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.665]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.666] ERROR 
[22:27:25.667] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.667]     33|     <%- partial('mermaid') %>
[22:27:25.667]     34|   <% } %>
[22:27:25.667]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.667]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.668]     37|   <%- layoutTitle() %>
[22:27:25.668]     38|   <%- page.content %>
[22:27:25.668] 
[22:27:25.669] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.670]     121| }
[22:27:25.670]     122| %>
[22:27:25.670]  >> 123| <%- layoutDiv() %>
[22:27:25.670]     124| 
[22:27:25.670] 
[22:27:25.677] Cannot read properties of undefined (reading 'repo')
[22:27:25.677]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.677]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.683]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.684]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.684]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.684]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.684]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.684]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.684]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.685]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.685]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.685]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.685]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.685]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.686]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.686]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.686] ERROR 
[22:27:25.686] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:35
[22:27:25.686]     33|     <%- partial('mermaid') %>
[22:27:25.686]     34|   <% } %>
[22:27:25.686]  >> 35|   <%- partial('_partial/main/navbar/breadcrumb') %>
[22:27:25.687]     36|   <article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
[22:27:25.687]     37|   <%- layoutTitle() %>
[22:27:25.687]     38|   <%- page.content %>
[22:27:25.687] 
[22:27:25.687] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs:123
[22:27:25.687]     121| }
[22:27:25.688]     122| %>
[22:27:25.688]  >> 123| <%- layoutDiv() %>
[22:27:25.688]     124| 
[22:27:25.688] 
[22:27:25.688] Cannot read properties of undefined (reading 'repo')
[22:27:25.688]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":96:34)
[22:27:25.688]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/navbar/breadcrumb.ejs":135:17)
[22:27:25.689]     at breadcrumb (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.689]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.689]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.689]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.689]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":62:17)
[22:27:25.689]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.689]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.690]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.690]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:25.690]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:25.690]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:25.690]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:25.690]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:25.691]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:25.691] ERROR 
[22:27:25.691] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs:35
[22:27:25.691]     33|   <%- partial('_partial/plugins/ai/tianli_gpt') %>
[22:27:25.691]     34| <% } %>
[22:27:25.691]  >> 35| <%- partial('_partial/main/article/article_footer') %>
[22:27:25.691]     36| </article>
[22:27:25.692]     37| <%- partial('_partial/main/article/read_next') %>
[22:27:25.692]     38| <%- partial('_partial/main/article/related_posts') %>
[22:27:25.692] 
[22:27:25.692] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
[22:27:25.692]     144| }
[22:27:25.692]     145| %>
[22:27:25.693]  >> 146| <%- layoutDiv(); %>
[22:27:25.693]     147| 
[22:27:25.693] 
[22:27:25.693] text.replace is not a function
[22:27:25.693]     at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
[22:27:25.693]     at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
[22:27:25.693]     at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
[22:27:25.694]     at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
[22:27:25.694]     at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
[22:27:25.694]     at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
[22:27:25.694]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
[22:27:25.694]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
[22:27:25.694]     at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.695]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.695]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.695]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.696]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs":77:17)
[22:27:25.697]     at post (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.697]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.697]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:25.697] ERROR 
[22:27:25.697] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs:35
[22:27:25.698]     33|   <%- partial('_partial/plugins/ai/tianli_gpt') %>
[22:27:25.698]     34| <% } %>
[22:27:25.698]  >> 35| <%- partial('_partial/main/article/article_footer') %>
[22:27:25.698]     36| </article>
[22:27:25.698]     37| <%- partial('_partial/main/article/read_next') %>
[22:27:25.698]     38| <%- partial('_partial/main/article/related_posts') %>
[22:27:25.699] 
[22:27:25.699] /vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs:146
[22:27:25.699]     144| }
[22:27:25.699]     145| %>
[22:27:25.699]  >> 146| <%- layoutDiv(); %>
[22:27:25.699]     147| 
[22:27:25.700] 
[22:27:25.700] text.replace is not a function
[22:27:25.700]     at formatText (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:67:15)
[22:27:25.700]     at module.exports (/vercel/path0/node_modules/hexo-renderer-kramed/lib/renderer.js:71:17)
[22:27:25.700]     at Render.renderSync (/vercel/path0/node_modules/hexo/dist/hexo/render.js:103:30)
[22:27:25.700]     at Object.render (/vercel/path0/node_modules/hexo/dist/plugins/helper/render.js:3:23)
[22:27:25.701]     at Object.markdownHelper (/vercel/path0/node_modules/hexo/dist/plugins/helper/markdown.js:3:17)
[22:27:25.701]     at refList ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":33:13)
[22:27:25.701]     at layoutDiv ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":43:15)
[22:27:25.701]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/_partial/main/article/article_footer.ejs":158:17)
[22:27:25.701]     at article_footer (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.701]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:25.703]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:25.703]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:25.703]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/post.ejs":77:17)
[22:27:25.704]     at post (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:25.704]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:25.704]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:26.163] ERROR 
[22:27:26.163] TypeError: /vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs:25
[22:27:26.163]     23| %>
[22:27:26.163]     24| <% if (page.layout === 'wiki_index') { %>
[22:27:26.163]  >> 25|   <%- partial('index') %>
[22:27:26.163]     26| <% } else { %>
[22:27:26.163]     27|   <%
[22:27:26.163]     28|   if (page.header == undefined) {
[22:27:26.163] 
[22:27:26.163] /vercel/path0/node_modules/hexo-theme-stellar/layout/index.ejs:86
[22:27:26.163]     84| <% } else if (page.menu_id === 'wiki') { %>
[22:27:26.164]     85|   <%- partial('_partial/main/navbar/list_wiki') %>
[22:27:26.164]  >> 86|   <%- layout_wiki_list(function(proj){
[22:27:26.164]     87|     return partial('_partial/main/post_list/wiki_card', {proj: proj})
[22:27:26.164]     88|   }) %>
[22:27:26.164]     89| <% } %>
[22:27:26.164] 
[22:27:26.164] shelf is not iterable
[22:27:26.164]     at layout_wiki_list ("/vercel/path0/node_modules/hexo-theme-stellar/layout/index.ejs":63:19)
[22:27:26.164]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/index.ejs":110:17)
[22:27:26.164]     at index (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:26.164]     at _View._compiledSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:122:32)
[22:27:26.164]     at _View.renderSync (/vercel/path0/node_modules/hexo/dist/theme/view.js:64:29)
[22:27:26.165]     at Object.partial (/vercel/path0/node_modules/hexo/dist/plugins/helper/partial.js:27:17)
[22:27:26.165]     at eval ("/vercel/path0/node_modules/hexo-theme-stellar/layout/wiki.ejs":39:17)
[22:27:26.165]     at wiki (/vercel/path0/node_modules/ejs/lib/ejs.js:703:17)
[22:27:26.165]     at _View._compiled (/vercel/path0/node_modules/hexo/dist/theme/view.js:125:67)
[22:27:26.165]     at _View.render (/vercel/path0/node_modules/hexo/dist/theme/view.js:50:21)
[22:27:26.165]     at /vercel/path0/node_modules/hexo/dist/hexo/index.js:58:29
[22:27:26.165]     at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
[22:27:26.165]     at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
[22:27:26.165]     at RouteStream._read (/vercel/path0/node_modules/hexo/dist/hexo/router.js:43:9)
[22:27:26.165]     at Readable.read (node:internal/streams/readable:507:12)
[22:27:26.165]     at resume_ (node:internal/streams/readable:1008:12)
[22:27:26.847] INFO  Generated: posts/49b1cc7e.html
[22:27:26.847] INFO  Generated: wiki/index.html
[22:27:26.853] INFO  Generated: search.json
xxxxxxxxxxxxx省略部分内容
[22:27:26.884] INFO  Generated: assets/placeholder/social/3845874.svg
[22:27:26.884] INFO  Generated: assets/placeholder/social/942ebbf1a4b91.svg
[22:27:26.884] INFO  218 files generated in 1.59 s
[22:27:26.962] Done in 4.24s.
[22:27:27.095] Build Completed in /vercel/output [20s]
[22:27:27.251] Deploying outputs...
[22:27:31.243] 
[22:27:31.544] Deployment completed
[22:27:37.205] Uploading build cache [29.13 MB]...
[22:27:38.571] Build cache uploaded: 1.366s
chaofanx commented 8 months ago

大概是最近几个版本引入的吧,这几个失败的文章刚写完那会是没问题了,后来就是dependabot升级了几次依赖版本 image

xaoxuu commented 8 months ago

麻烦你试一下 main 分支最新代码是否修复了

chaofanx commented 8 months ago

麻烦你试一下 main 分支最新代码是否修复了

怎么使用main分支啊,下载到themes目录吗

xaoxuu commented 8 months ago

对的,我这里没有报错,也不知道改好了没

chaofanx commented 8 months ago

对的,我这里没有报错,也不知道改好了没

更新到最新版本了,发现是好久没有按照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 | ERROR
01:20:38.579 | TypeError: /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)
01:20:38.600 | ERROR
01:20:38.600 | TypeError: /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)
01:20:38.629 | ERROR
01:20:38.630 | TypeError: /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)
01:20:38.636 | ERROR
01:20:38.636 | TypeError: /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)
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
xaoxuu commented 8 months ago

text.replace is not a function 但我没有搜到 text.replace

不行的话你把 _config.stellar.yml 文件里全注释掉试一下行不行

chaofanx commented 8 months ago

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"
  }
xaoxuu commented 8 months ago

似乎是这个插件的报错: 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)
chaofanx commented 8 months ago

解决了,原来是references:的语法变了,我还用的是原本的

references:
  - title: xx
    url: xx