volantis-x / hexo-theme-volantis

A Wonderful Theme for Hexo.
https://volantis.js.org
MIT License
2.07k stars 599 forks source link

【问题】:执行hexo -g出现ERROR Render HTML failed报错 #917

Closed AyMeow closed 7 months ago

AyMeow commented 8 months ago

检查清单

主题版本

5.x

复现地址

问题描述

完全新建的环境,只更改了主题,其余什么都没有改 微信截图_20240328153029 ERROR Render HTML failed: archives/2024/index.html RangeError: E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs:36 34|

35|

36| <%- partial('_partial/scripts/index') %> 37| <% if (theme.plugins.pjax.enable){ %> 38| <%- partial('_plugins/pjax/index') %> 39| <% } %>

E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout_partial\scripts\index.ejs:146 144| 145| <% if (theme.structured_data && theme.structured_data.enable) { %>

146| <%- structured_data() %> 147| <% } %> 148| 149|

Incorrect locale information provided at new DateTimeFormat () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\breadcrumblist.js:68:19) at E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:52 at Array.map () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:41) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\_partial\scripts\index.ejs":267:17) at index (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiledSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:120:32) at _View.renderSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:62:29) at Object.partial (E:\Personal_Profile\Blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs":65:17) at layout (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiled (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:123:67) at _View.render (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:48:21) at E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:55:31 at tryCatcher (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:86:9) ERROR Render HTML failed: archives/2024/03/index.html RangeError: E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs:36 34|

35|

36| <%- partial('_partial/scripts/index') %> 37| <% if (theme.plugins.pjax.enable){ %> 38| <%- partial('_plugins/pjax/index') %> 39| <% } %>

E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout_partial\scripts\index.ejs:146 144| 145| <% if (theme.structured_data && theme.structured_data.enable) { %>

146| <%- structured_data() %> 147| <% } %> 148| 149|

Incorrect locale information provided at new DateTimeFormat () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\breadcrumblist.js:68:19) at E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:52 at Array.map () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:41) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\_partial\scripts\index.ejs":267:17) at index (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiledSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:120:32) at _View.renderSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:62:29) at Object.partial (E:\Personal_Profile\Blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs":65:17) at layout (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiled (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:123:67) at _View.render (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:48:21) at E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:55:31 at tryCatcher (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:86:9) ERROR RangeError: E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs:36 34|

35|

36| <%- partial('_partial/scripts/index') %> 37| <% if (theme.plugins.pjax.enable){ %> 38| <%- partial('_plugins/pjax/index') %> 39| <% } %>

E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout_partial\scripts\index.ejs:146 144| 145| <% if (theme.structured_data && theme.structured_data.enable) { %>

146| <%- structured_data() %> 147| <% } %> 148| 149|

Incorrect locale information provided at new DateTimeFormat () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\breadcrumblist.js:68:19) at E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:52 at Array.map () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:41) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\_partial\scripts\index.ejs":267:17) at index (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiledSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:120:32) at _View.renderSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:62:29) at Object.partial (E:\Personal_Profile\Blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs":65:17) at layout (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiled (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:123:67) at _View.render (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:48:21) at E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:55:31 at tryCatcher (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:86:9) ERROR RangeError: E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs:36 34|

35|

36| <%- partial('_partial/scripts/index') %> 37| <% if (theme.plugins.pjax.enable){ %> 38| <%- partial('_plugins/pjax/index') %> 39| <% } %>

E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout_partial\scripts\index.ejs:146 144| 145| <% if (theme.structured_data && theme.structured_data.enable) { %>

146| <%- structured_data() %> 147| <% } %> 148| 149|

Incorrect locale information provided at new DateTimeFormat () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\breadcrumblist.js:68:19) at E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:52 at Array.map () at module.exports (E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\scripts\helpers\structured-data\lib\index.js:28:41) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\_partial\scripts\index.ejs":267:17) at index (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiledSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:120:32) at _View.renderSync (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:62:29) at Object.partial (E:\Personal_Profile\Blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17) at eval ("E:\Personal_Profile\Blog\node_modules\hexo-theme-volantis\layout\layout.ejs":65:17) at layout (E:\Personal_Profile\Blog\node_modules\ejs\lib\ejs.js:703:17) at _View._compiled (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:123:67) at _View.render (E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:48:21) at E:\Personal_Profile\Blog\node_modules\hexo\dist\theme\view.js:55:31 at tryCatcher (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (E:\Personal_Profile\Blog\node_modules\bluebird\js\release\async.js:86:9)

配置文件

站点配置文件

```yml 在这里粘贴替换 `blog/_config.yml` 中修改过的部分 ```

主题配置文件

```yml 在这里粘贴替换 `themes/volantis/_config.yml` 中修改过的部分 ```

环境信息

node.js & npm

``` node -v && npm -v v20.12.0 10.5.0 ```

package.json

``` C:\Users\AyMeow~>npm ls --depth 0 C:\Users\AyMeow~ `-- (empty) ```

inkss commented 8 months ago
Incorrect locale information provided
  at new DateTimeFormat ()

config.language 是怎么配置的?在 blog/_config.yml 文件中。

github-actions[bot] commented 8 months ago

:wave: Hello, We need more information to make suggestions. Please edit your issue again, complete the information requested in the template, and describe your issue in as much detail as possible.

:wave: 您好, 我们需要更多信息才能给出建议,请重新编辑您的 issue ,完善模板中要求提供的信息,并尽可能详细地描述您的问题。

kibabuuuuaua commented 7 months ago

解决了吗?我也是一样