node.js - Requirejs with nodejs doesn't tell me the line number of the error, just the error -
requirejs nodejs doesn't tell me line number of error, error
for example result is: error: evaluating ccc.js module "ccc" failed error: syntaxerror: unexpected token ,
and stack:
at function.req.load (d:\web\pc\node_modules\requirejs\bin\r.js:2470:23) @ object.context.load (d:\web\pc\node_modules\requirejs\bin\r.js:1858:21) @ object.module.load (d:\web\pc\node_modules\requirejs\bin\r.js:1059:29) @ object.module.fetch (d:\web\pc\node_modules\requirejs\bin\r.js:1049:66) @ object.module.check (d:\web\pc\node_modules\requirejs\bin\r.js:1079:26) @ object.module.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1376:22) @ object.context.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1730:39) @ object.<anonymous> (d:\web\pc\node_modules\requirejs\bin\r.js:1361:33) @ g (d:\web\pc\node_modules\requirejs\bin\r.js:363:23) @ each (d:\web\pc\node_modules\requirejs\bin\r.js:291:31) @ object.module.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1323:17) @ object.module.init (d:\web\pc\node_modules\requirejs\bin\r.js:1013:26) @ callgetmodule (d:\web\pc\node_modules\requirejs\bin\r.js:1403:63) @ object.context.completeload (d:\web\pc\node_modules\requirejs\bin\r.js:1763:21) @ function.req.load (d:\web\pc\node_modules\requirejs\bin\r.js:2510:17) @ object.context.load (d:\web\pc\node_modules\requirejs\bin\r.js:1858:21) @ object.module.load (d:\web\pc\node_modules\requirejs\bin\r.js:1059:29) @ object.module.fetch (d:\web\pc\node_modules\requirejs\bin\r.js:1049:66) @ object.module.check (d:\web\pc\node_modules\requirejs\bin\r.js:1079:26) @ object.module.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1376:22) @ object.context.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1730:39) @ object.<anonymous> (d:\web\pc\node_modules\requirejs\bin\r.js:1361:33) @ g (d:\web\pc\node_modules\requirejs\bin\r.js:363:23) @ each (d:\web\pc\node_modules\requirejs\bin\r.js:291:31) @ object.module.enable (d:\web\pc\node_modules\requirejs\bin\r.js:1323:17) @ object.module.init (d:\web\pc\node_modules\requirejs\bin\r.js:1013:26) @ object.context.makerequire.mixin.isbrowser [as _ontimeout] (d:\web\pc\node_modules\requirejs\bin\r.js:1646:36) @ timer.list.ontimeout (timers.js:101:19)
and error is? know file line?
thanks help
it's not problem requirejs , fixed in nodejs version 0.12.
unfortunately, there not enough hooks vm.runinthiscontext in older node versions information.
more info can find here
so, nodejs v.0.10 doesn't want show additional info problem. if want - can install newest version of nodejs , gets more info syntax errors in "required" files.
by way, docker it's pretty easy - need pull repo node:0.12.
Comments
Post a Comment