Open luckypoem opened 10 years ago
Firstly, this is a bug report for heckle, not for my blog.
Secondly, I have no idea how you got this error. But you're supposed to run heckle in your blog directory (the one with _posts
, etc subdirs), not from its own directory. Still, if I run it from its own dir I get a different error.
hi.
the error still happened.
as3:~/heckle-by-marijnh# mkdir blog as3:~/heckle-by-marijnh# cd blog as3:~/heckle-by-marijnh/blog# cd .. as3:~/heckle-by-marijnh# mv _config.yml feed.md _includes index.md _layouts _posts res blog as3:~/heckle-by-marijnh# ls blog heckle.js LICENSE node_modules package.json README.md util.js as3:~/heckle-by-marijnh# cd blog as3:~/heckle-by-marijnh/blog# node ~/heckle-by-marijnh/heckle.js
/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:1113 throw e; ^ ReferenceError: options is not defined Please report this to https://github.com/chjj/marked. at Object.exports.runMode (/root/heckle-by-marijnh/node_modules/codemirror/addon/runmode/runmode.node.js:104:44) at Object.highlightCode as highlight at Parser.tok (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:858:33) at Parser.parse (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:797:17) at Function.Parser.parse (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:784:17) at marked (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:1105:19) at /root/heckle-by-marijnh/heckle.js:55:22 at Array.forEach (native) at readPosts (/root/heckle-by-marijnh/heckle.js:45:29) at generate (/root/heckle-by-marijnh/heckle.js:123:38) as3:~/heckle-by-marijnh/blog#
how to fix it?
I can't reproduce this error.
hi.
as3:~/heckle-by-marijnh# node heckle.js
/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:1113 throw e; ^ ReferenceError: options is not defined Please report this to https://github.com/chjj/marked. at Object.exports.runMode (/root/heckle-by-marijnh/node_modules/codemirror/addon/runmode/runmode.node.js:104:44) at Object.highlightCode as highlight at Parser.tok (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:858:33) at Parser.parse (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:797:17) at Function.Parser.parse (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:784:17) at marked (/root/heckle-by-marijnh/node_modules/marked/lib/marked.js:1105:19) at /root/heckle-by-marijnh/heckle.js:55:22 at Array.forEach (native) at readPosts (/root/heckle-by-marijnh/heckle.js:45:29) at generate (/root/heckle-by-marijnh/heckle.js:123:38) as3:~/heckle-by-marijnh#