我有以下package.json
文件:
{
"repository": {
},
"dependencies": {
"brunch": "^1.8.5",
"babel-brunch": "^5.1.1",
"clean-css-brunch": ">= 1.0 < 1.8",
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"sass-brunch": "~> 2.6.2"
}
}
当我使用mix phoenix.start
启动服务器时,我看到了以下错误:
TypeError: Cannot read property 'trim' of undefined
at SassCompiler.compile (/Users/ryanbigg/Projects/elixir/twist/node_modules/sass-brunch/index.js:208:14)
at /Users/ryanbigg/Projects/elixir/twist/node_modules/brunch/lib/fs_utils/pipeline.js:104:29
at fn (/Users/ryanbigg/Projects/elixir/twist/node_modules/async-waterfall/index.js:19:24)
at Immediate._onImmediate (/Users/ryanbigg/Projects/elixir/twist/node_modules/async-waterfall/index.js:58:22)
at processImmediate [as _immediateCallback] (timers.js:383:17)
我在这里配置错误是为了发生此错误?
答案 0 :(得分:2)
我在Elixir Slack上询问了这一点,我们发现在sass-brunch
使用1.9.2
修复了这个问题:
"sass-brunch": "~> 1.9.2"