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

出现错误Cannot read property 'forEach' of undefined #3874

Open
bmxbmx3 opened this issue Nov 19, 2019 · 6 comments
Open

出现错误Cannot read property 'forEach' of undefined #3874

bmxbmx3 opened this issue Nov 19, 2019 · 6 comments
Labels

Comments

@bmxbmx3
Copy link

@bmxbmx3 bmxbmx3 commented Nov 19, 2019

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Question

当我输入hexo clean && hexo g的时候,出现如下错误,求教怎么解决:

ERROR Render HTML failed: categories/博客文章更新计划/index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR Render HTML failed: categories/REST接口测试/index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR Render HTML failed: index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR Render HTML failed: tags/名词解释/index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR Render HTML failed: tags/计划/index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR Render HTML failed: tags/技巧/index.html
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
ERROR D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
TypeError: D:\生活\项目\blog\themes\next\layout\layout.ejs:9
    7|         <section id="main"><%- body %></section>
    8|         <% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
 >> 9|           <%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
    10|         <% } %>
    11|       </div>
    12|       <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

D:\生活\项目\blog\themes\next\layout\_partial\sidebar.ejs:2
    1| <aside id="sidebar"<% if (theme.sidebar === 'bottom'){ %> class="outer"<% } %>>
 >> 2|   <% theme.widgets.forEach(function(widget){ %>
    3|     <%- partial('_widget/' + widget) %>
    4|   <% }) %>
    5| </aside>

Cannot read property 'forEach' of undefined
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:15:22)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiledSync.locals [as _compiledSync] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:119:22)
    at Theme._View.View.View.renderSync (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:48:23)
    at fragment_cache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:52)
    at Object.fragmentCache (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\fragment_cache.js:12:32)
    at Object.partial (D:\生活\项目\blog\node_modules\hexo\lib\plugins\helper\partial.js:31:17)
    at eval (eval at compile (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:633:12), <anonymous>:21:17)
    at returnedFn (D:\生活\项目\blog\node_modules\ejs\lib\ejs.js:668:17)
    at Theme._View.View._compiled.locals [as _compiled] (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at _compiled.then.result (D:\生活\项目\blog\node_modules\hexo\lib\theme\view.js:40:23)
    at tryCatcher (D:\生活\项目\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\生活\项目\blog\node_modules\bluebird\js\release\promise.js:649:10)
INFO  Generated: baidu_urls.txt
INFO  1 files generated in 834 ms

Environment & Settings

Node.js & npm version

10.16.3

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)

hexo-site@0.0.0 D:\生活\项目\blog
+-- hexo@4.0.0
+-- hexo-algolia@1.3.1
+-- hexo-baidu-url-submit@0.0.6
+-- hexo-deployer-git@2.0.0
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-baidu-sitemap@0.1.6
+-- hexo-generator-category@1.0.0
+-- hexo-generator-feed@2.1.0
+-- hexo-generator-index-pin-top@0.2.2
+-- hexo-generator-searchdb@1.1.0
+-- hexo-generator-sitemap@1.2.0
+-- hexo-generator-tag@1.0.0
+-- hexo-next-share@1.0.0 (github:theme-next/hexo-next-share#bbfbb9645d8b80ceca6329a06f50ae5445df309b)
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@2.0.0
+-- hexo-renderer-stylus@1.1.0
+-- hexo-server@1.0.0
+-- hexo-symbols-count-time@0.6.3
`-- hexo-theme-next-anchor@1.0.3

Your package.json package.json

{
  "name": "hexo-theme-next",
  "version": "7.5.0",
  "description": "Elegant and powerful theme for Hexo",
  "main": "gulpfile.js",
  "scripts": {
    "test": "gulp"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/theme-next/hexo-theme-next.git"
  },
  "keywords": [
    "hexo",
    "theme",
    "next"
  ],
  "author": "NexT <support@theme-next.org> (https://theme-next.org)",
  "license": "AGPL",
  "bugs": {
    "url": "https://github.com/theme-next/hexo-theme-next/issues"
  },
  "homepage": "https://theme-next.org",
  "devDependencies": {
    "eslint": "^6.5.1",
    "eslint-config-theme-next": "^1.1.3",
    "gulp": "^4.0.2",
    "gulp-eslint": "^6.0.0",
    "gulp-shell": "^0.7.1",
    "js-yaml": "^3.13.1",
    "stylint": "^2.0.0"
  },
  "engines": {
    "node": ">=8.6.0"
  }
}

Others

@YoshinoriN

This comment has been minimized.

Copy link
Member

@YoshinoriN YoshinoriN commented Nov 19, 2019

According to error message, this issue caused by the following source code.

<% theme.widgets.forEach(function(widget){ %>

But, I can't find it on hexo-theme-next. Did you customize it?

@bmxbmx3

This comment has been minimized.

Copy link
Author

@bmxbmx3 bmxbmx3 commented Nov 20, 2019

According to error message, this issue caused by the following source code.

<% theme.widgets.forEach(function(widget){ %>

But, I can't find it on hexo-theme-next. Did you customize it?

No,I just used npm to install dependencires and the hexo commands to set my blog.

@YoshinoriN

This comment has been minimized.

Copy link
Member

@YoshinoriN YoshinoriN commented Nov 21, 2019

This is a theme issue. Not about hexo & hexo official-plugins.
It seems you are using hexo-theme-next. Did you customized hexo-theme-next?

@stevenjoezhang

This comment has been minimized.

Copy link
Contributor

@stevenjoezhang stevenjoezhang commented Nov 21, 2019

I have no idea why layout.ejs will appear. The theme NexT uses swig (nunjucks) with a suffix of .swig.

@bmxbmx3

This comment has been minimized.

Copy link
Author

@bmxbmx3 bmxbmx3 commented Nov 22, 2019

I have no idea why layout.ejs will appear. The theme NexT uses swig (nunjucks) with a suffix of .swig.

um....it seems to show the error after I have modified the NexT theme _config file by editing the copyright part like below:

creative_commons:
    license: by-nc-sa
    sidebar: true
    post: true

however,after I run the command hexo g -d,the license logo didn't show on the sidebar correctly,but I‘m not sure if layout.ejs is caused by this editing behavior or just installing the dependencies.

@bmxbmx3

This comment has been minimized.

Copy link
Author

@bmxbmx3 bmxbmx3 commented Nov 22, 2019

This is a theme issue. Not about hexo & hexo official-plugins.
It seems you are using hexo-theme-next. Did you customized hexo-theme-next?

I just have edited the theme _cofig file and the post files,but didn't modify any other files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.