Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created December 13, 2013 19:38
Show Gist options
  • Select an option

  • Save knowuh/7949993 to your computer and use it in GitHub Desktop.

Select an option

Save knowuh/7949993 to your computer and use it in GitHub Desktop.
Lab build error. December 13, 2013
converting updated MML files ... ...................................................................................................................................
converted 1316 MML files.
./node-bin/create-mml-html-index
/Users/npaessel/lab/javascript/lab/node_modules/jade/lib/runtime.js:198
throw err;
^
TypeError: Jade:75
73| mwLink.href = newhref;
74| }
> 75|
Object function uglify(orig_code, options){
options || (options = {});
var jsp = uglify.parser;
var pro = uglify.uglify;
var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
return final_code;
} has no method 'parse'
at detect (/Users/npaessel/lab/javascript/lab/node_modules/jade/node_modules/with/index.js:33:22)
at addWith (/Users/npaessel/lab/javascript/lab/node_modules/jade/node_modules/with/index.js:8:28)
at parse (/Users/npaessel/lab/javascript/lab/node_modules/jade/lib/jade.js:105:11)
at Object.exports.compile (/Users/npaessel/lab/javascript/lab/node_modules/jade/lib/jade.js:142:9)
at Object.createCmlJsonIndex (/Users/npaessel/lab/javascript/lab/src/helpers/md2d/mw-batch-converter.js:221:17)
at Object.<anonymous> (/Users/npaessel/lab/javascript/lab/node-bin/create-mml-html-index:9:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
make[2]: *** [convert-mml] Error 8
make[1]: *** [public/imports] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment