【发布时间】:2013-10-25 22:33:56
【问题描述】:
我创建了自己的 brunch 配置来使用 coffeescript、jade 和 stylus。
它运行良好,除了一个主要问题。每当coffeescript 或jade(还没有手写笔编码错误)在brunch --watch 期间编译时出现问题,我都会收到如下错误:
C:\path\to\node_modules\brunch\lib\fs_utils\pipeline.js:64
return callback(throwError('Compiling', error));
^
ReferenceError: callback is not defined
at C:\path\to\node_modules\brunch\lib\fs_utils\pipeline.js:64:18
at CoffeeScriptCompiler.module.exports.CoffeeScriptCompiler.compile (C:\path\to\node_modules\coffee-script-brunch\lib\index.js:56:16)
at C:\path\to\node_modules\brunch\lib\fs_utils\pipeline.js:93:31
at fn (C:\path\to\node_modules\brunch\node_modules\async-waterfall\index.js:19:24)
at Object._onImmediate (C:\path\to\chromesign\node_modules\brunch\node_modules\async-waterfall\index.js:58:22)
at processImmediate [as _immediateCallback] (timers.js:330:15)
看起来应该向插件传递一个错误回调,但它没有发生?
我在配置中做错了吗?带有所有配置的骨架托管在on GitHub。对于这是否是我这边的问题,我将不胜感激!
谢谢!
【问题讨论】:
标签: brunch