Coder Social home page Coder Social logo

有时generate会报错 about hexo HOT 2 CLOSED

hexojs avatar hexojs commented on August 27, 2024
有时generate会报错

from hexo.

Comments (2)

leecade avatar leecade commented on August 27, 2024
hexo generate                                                                          ⏎
Clearing.
Loading source files.
Analyzing source files.
Installing theme.
Generating index.

undefined:24
  throw err;
        ^
ReferenceError: ejs:7
    5|   <div id="content" class="inner">
    6|     <div id="main-col" class="alignleft"><div id="wrapper"><%- body %></div></div>
 >> 7|     <aside id="sidebar" class="alignright"><%- partial('_partial/sidebar') %></aside>
    8|     <div class="clearfix"></div>
    9|   </div>
    10|   <footer id="footer" class="inner"><%- partial('_partial/footer') %></footer>

ejs:2
    1| <% theme.widgets.forEach(function(widget){ %>
 >> 2| <%- partial('../_widget/' + widget) %>
    3| <% }); %>

ejs:3
    1| <div class="search">
    2|   <form action="http://google.com/search" method="get" accept-charset="utf-8">
 >> 3|     <input type="text" name="q" results="0" placeholder="<%= __('search') %>">
    4|     <input type="hidden" name="q" value="site:<%- config.url.replace(/^https?:\/\//, '') %>">
    5|   </form>
    6| </div>

__ is not defined
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at exports.compile (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:239:15)
    at Object.exports.render (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:277:13)
    at Object.ejs (/usr/local/lib/node_modules/hexo/lib/renderer/ejs.js:7:14)
    at exports.renderSync (/usr/local/lib/node_modules/hexo/lib/render.js:39:29)
    at Object.render [as partial] (/usr/local/lib/node_modules/hexo/lib/helper/partial.js:27:12)
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at Array.forEach (native)
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at exports.compile (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:239:15)

node -v ⏎
v0.8.16

from hexo.

tommy351 avatar tommy351 commented on August 27, 2024

@leecade What's your Hexo version?

from hexo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.