Open fimble opened 12 years ago
kanso push example Reading dependency tree... loading . preprocessor attachments/add preprocessor coffee-script-precompiler/compile loading packages/attachments loading packages/coffee-script-precompiler Error: Error when running preprocessor: "coffee-script-precompiler/compile" Error: TypeError: Cannot read property '0' of undefined at Object.abspath (/home/az/work/Map/packages/coffee-script-precompiler/node_modules/kanso-utils/utils.js:426:10) at Object.normalizePaths (/home/az/work/Map/packages/coffee-script-precompiler/node_modules/kanso-precompiler-base/lib/precompiler.js:28:29) at /home/az/work/Map/packages/coffee-script-precompiler/build/compile.js:46:29 at BuildManager.runStep (/usr/lib/node_modules/kanso/lib/buildsteps.js:375:12) at /usr/lib/node_modules/kanso/lib/buildsteps.js:133:18 at Array.forEach (native) at BuildManager.run (/usr/lib/node_modules/kanso/lib/buildsteps.js:130:16) at Object.preprocess (/usr/lib/node_modules/kanso/lib/packages.js:281:8) at /usr/lib/node_modules/kanso/lib/packages.js:69:21 at /usr/lib/node_modules/kanso/node_modules/async/lib/async.js:194:13 preprocessor coffee-script-precompiler/remove Failed
@fimble: I have a fix for the second error. I've been unable to reproduce the first error. Can you link me to a repo of a project that generates these errors? Thanks.
The first error was gone after I delete and create same simple project again, I don't know how to reproduce it. Thanks for fast responce! :)
FWIW, I'm getting the first problem Bad special document member: _modules
. I'll try creating the project again.
Edit: My problem was that modules was not properly installed.
CoffeeScript version 1.2.0 node version v0.6.19 kanso version 0.2.1
▾ Map/ ▾ js/ test.coffee ▾ lib/ app.coffee ▸ packages/ index.html kanso.json
kanso.json:
{ "name": "example-app", "version": "0.0.1", "description": "The simplest possible app", "attachments": ["index.html"],
"dependencies": { "attachments": null, "coffee-script-precompiler": null },
"coffee-script": { "modules": ["lib"], "attachments": ["js"] } }
push: