ExtJS 6现代“CODE”包构建Sass编译器错误

时间:2017-06-30 21:42:23

标签: extjs

使用Sencha Cmd v6.5.0.180 从工作区回家

sencha generate package --type=CODE --framework=ext --toolkit=modern my-menu
cd packages/local/my-menu
sencha package build

这很好,但是当我添加Ext.panel.Panel

的扩展名时
Ext.define('My.menu.Header', {
extend: 'Ext.panel.Panel',
....

我现在得到时尚/ sass编译错误。

在package.json中是否需要额外的设置来告诉应用程序构建在哪里找到sass资源(我想使用'theme-material')或者我应该为包构建禁用sass编译,还是其他什么?

输出:

[INF] appending sass content to C:\app\src\main\webapp\x6\packages\local\app-menu\build\app-menu-all-debug.scss
[INF] appending sass content to C:\app\src\main\webapp\x6\packages\local\app-menu\build\app-menu-all-debug.scss
[INF] Building C:\app\src\main\webapp\x6\packages\local\app-menu\build\app-menu-all-debug.scss to C:\app\src\main\webapp\x6\packages\local\app-menu\build\resources\app-menu-all-debug.css
[LOG] Fashion build starting for C:\app\src\main\webapp\x6\packages\local\app-menu\build\app-menu-all-debug.scss
[ERR] unknown definition for mixin named box-shadow : C:/web/src/main/webapp/x6/ext/packages/core/sass/etc/recipes/color.scss:202
[ERR] unknown definition for mixin named text-shadow : C:/web/src/main/webapp/x6/ext/packages/core/sass/etc/recipes/color.scss:205
[LOG] Build error for C:\app\src\main\webapp\x6\packages\local\app-menu\build\app-menu-all-debug.scss
{ Error: Sass compilation encountered 2 error(s)
    at Object.raise (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\export\Base.js:131:17)
    at Transpiler.transpile (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\Transpiler.js:1549:21)
    at Context.convert (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\Context.js:42:34)
    at C:\Cmd\6.5.0.180\js\node_modules\fashion\src\Builder.js:147:45
    at SassFile.fireReady (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:426:17)
    at C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:398:28
    at SassFile.fireReady (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:426:17)
    at C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:398:28
    at SassFile.fireReady (C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:426:17)
    at C:\Cmd\6.5.0.180\js\node_modules\fashion\src\SassFile.js:398:28 '$isFashionError': true }
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 1
[ERR]   at o
[ERR] rg.apache.tools.ant.Task.perform(Task.java:348)
[ERR]
[ERR] Total time: 8 seconds
[ERR] The following error occurred while executing this line:

0 个答案:

没有答案