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时报错 #159

Open
Pleasecallmeboss opened this issue Jan 12, 2022 · 1 comment
Open

运行hexo g时报错 #159

Pleasecallmeboss opened this issue Jan 12, 2022 · 1 comment

Comments

@Pleasecallmeboss
Copy link

E:\Projects\Blog\blog>hexo clean && hexo g
INFO Validating config
INFO Deleted database.
INFO Deleted public folder.
INFO Validating config
INFO Start processing
INFO Files loaded in 258 ms
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:10
8|


9|

10|

<%= theme.page_titles.archives || __("Archived") %>


11|

「 <%= site.posts.length %> 」


12|

    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:12:44)
at archive (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs'
}
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs:4
2| <%- partial("_partial/post/header")%>
3|

4| <%- partial("_partial/post/article")%>
5|


6|

E:\Projects\Blog\blog\themes\obsidian\layout_partial\post\article.ejs:22
20|

<%- link_to(page.path, page.title || "Untitled", {class: ""}) %>
21|

22| <% if (theme.symbols_count_time.enable) {%>
23|


24| <% if (theme.symbols_count_time.wordCount) { %>
25|

Cannot read property 'enable' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout_partial\post\article.ejs:39:37)
at article (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (E:\Projects\Blog\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs:15:17)
at post (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs'
}
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs:4
2| <%- partial("_partial/post/header")%>
3|

4| <%- partial("_partial/post/article")%>
5|


6|

E:\Projects\Blog\blog\themes\obsidian\layout_partial\post\article.ejs:22
20|

<%- link_to(page.path, page.title || "Untitled", {class: ""}) %>
21|

22| <% if (theme.symbols_count_time.enable) {%>
23|


24| <% if (theme.symbols_count_time.wordCount) { %>
25|

Cannot read property 'enable' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout_partial\post\article.ejs:39:37)
at article (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (E:\Projects\Blog\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs:15:17)
at post (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\post.ejs'
}
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:10
8|


9|

10|

<%= theme.page_titles.archives || __("Archived") %>


11|

「 <%= site.posts.length %> 」


12|

    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:12:44)
at archive (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs'
}
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:10
8|


9|

10|

<%= theme.page_titles.archives || __("Archived") %>


11|

「 <%= site.posts.length %> 」


12|

    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs:12:44)
at archive (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\archive.ejs'
}
ERROR TypeError: E:\Projects\Blog\blog\themes\obsidian\layout\index.ejs:3
1| <%- partial("_partial/menu", null, {cache: true}) %>
2|

3| <%- partial("_partial/screen", null, {cache: false}) %>
4|


5| <%- partial('_partial/list', {start: 1}) %>
6|

E:\Projects\Blog\blog\themes\obsidian\layout_partial\screen.ejs:57
55|


56| <%- link_to(first.path, first.title || config.title, {class: "posttitle"}) %>

57| <% if (theme.symbols_count_time.enable) {%>
58|


59| <% if (theme.symbols_count_time.wordCount) { %>
60|

Cannot read property 'enable' of undefined
at eval (E:\Projects\Blog\blog\themes\obsidian\layout_partial\screen.ejs:72:37)
at screen (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (E:\Projects\Blog\blog\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (E:\Projects\Blog\blog\themes\obsidian\layout\index.ejs:13:17)
at index (E:\Projects\Blog\blog\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (E:\Projects\Blog\blog\node_modules\hexo\lib\theme\view.js:39:17)
at E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (E:\Projects\Blog\blog\node_modules\bluebird\js\release\util.js:16:23)
at E:\Projects\Blog\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (E:\Projects\Blog\blog\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume
(internal/streams/readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: 'E:\Projects\Blog\blog\themes\obsidian\layout\index.ejs'
}
(node:2696) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:2696) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:2696) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:2696) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:2696) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:2696) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

@kcn3388
Copy link
Contributor

kcn3388 commented Jan 12, 2022

检查主题配置文件,对着模板来写你自己的配置文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants