Ext JS 5 Button.sass错误onbuild

时间:2015-04-15 14:19:16

标签: sass extjs5

我想在Ext JS 5中创建自己的模板,我使用桌面视图。 我遵循了这本指南http://docs.sencha.com/extjs/5.0/core_concepts/theming.html一切都很清楚;我创建了一个新模板,默认scss工作得很好,但是当我尝试创建一个Button.scss文件时,就像这样:

@include extjs-button-ui(
$ui: 'team-arrow',
$background-color: red
);

并尝试通过'sencha app build'构建应用程序我收到此错误:

[INF] executing compass using system installed ruby runtime
    error UbiPlatformPBX-all.scss (Line 62 of ../../../../../ext/packages/ext-theme-base/sass/etc/functions.scss: Undefined operation: "5px-null gt 0".)
   create UbiPlatformPBX-all.css
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
[ERR]   at co
[ERR] m.sencha.command.Sencha.dispatch(Sencha.java:72)
[ERR]
[ERR] Total time: 19 seconds
[ERR] The following error occurred while executing this line:
/usr/local/ubipbx/wc_patryk/ubiquity-platform/extjs/.sencha/app/build-impl.xml:284: The following error occurred while executing this line:
/usr/local/ubipbx/wc_patryk/ubiquity-platform/extjs/.sencha/app/sass-impl.xml:155: The following error occurred while executing this line:
/usr/local/ubipbx/wc_patryk/ubiquity-platform/extjs/.sencha/app/sass-impl.xml:176: com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1

我不知道问题是什么,例如当我制作Panel.scss文件并使用此代码时:

@include extjs-panel-ui(
    $ui: 'highlight-framed',
    $ui-header-background-color: yellow,
    $ui-border-color: yellow,
    $ui-header-border-color: yellow,
    $ui-body-border-color: yellow,
    $ui-border-width: 5px,
    $ui-border-radius: 5px
);

一切正常。

0 个答案:

没有答案