Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
AyMeow opened this issue Mar 28, 2024 · 3 comments
Closed
3 tasks done

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

AyMeow opened this issue Mar 28, 2024 · 3 comments
Labels
help 使用遇到问题(报错、样式与示例不一致等) need more info 我们需要更多信息才能给出建议,请重新编辑您的 issue ,完善模板中要求提供的信息,并尽可能详细地描述您的问题。

Comments

@AyMeow
Copy link

AyMeow commented Mar 28, 2024

检查清单

  • 已经搜索过,没有发现类似 issue。
  • 已经搜索过主题文档,没有发现相关内容。
  • 已经尝试使用过最新版,问题依旧存在。

主题版本

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)

配置文件

站点配置文件

在这里粘贴替换 `blog/_config.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)

@AyMeow AyMeow added the help 使用遇到问题(报错、样式与示例不一致等) label Mar 28, 2024
@inkss
Copy link
Member

inkss commented Mar 30, 2024

Incorrect locale information provided
  at new DateTimeFormat ()

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

@inkss inkss added the need more info 我们需要更多信息才能给出建议,请重新编辑您的 issue ,完善模板中要求提供的信息,并尽可能详细地描述您的问题。 label Mar 30, 2024
Copy link
Contributor

👋 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.

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

@kibabuuuuaua
Copy link

解决了吗?我也是一样

@AyMeow AyMeow closed this as completed Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help 使用遇到问题(报错、样式与示例不一致等) need more info 我们需要更多信息才能给出建议,请重新编辑您的 issue ,完善模板中要求提供的信息,并尽可能详细地描述您的问题。
Projects
None yet
Development

No branches or pull requests

3 participants