View Full Version : Fashion compil error

30 Nov 2017, 11:22 PM

When i start Sencha Architect and select an app, or when i restart A p p w a t c h, i'm facing this error :

[LOG] Fashion build starting for path\to\my\app\build\temp\development\My_app\sass\My_app-all.scss

[LOG] Build error for path\to\my\app\build\temp\development\My_app\sass\My_app-all.scss

[LOG] Fashion Error : extjs_text_field_ui__mix is not defined :

[ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 1

[ERR] at org.apache.tools.ant.dispatch.Disp
[ERR] atchUtils.execute(DispatchUtils.java:106)


[ERR] Total time: 13 seconds

Exception in thread "Thread-38" com.sencha.exceptions.BasicException: com.sencha.exceptions.ExAnt:


I don't find anywhere this "extjs_text_field_ui__mix".

Any idea ?

(need to put space between letters for A p p w a t c h, otherwise there is this error message when posting : Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words.)

1 Dec 2017, 6:52 AM
Ok, i've found the mistake.

I have a form with number field.
I want to apply a custom style to this field.
In my app in Sencha Architect :

1. I put this config to the number field

fieldCls : x-form-field my_custom_cls
2. I add a css Resources : packages/local/theme-triton-my_app/sass/src/Custom.scss

color: #000000;
text-align: left;
font-weight: bold;
font-size: 25px;
padding: 0px 0px 0px 5px;
background-color: #EBDEC1;
3. When saving and/or compiling my app, this file is created : packages/local/theme-triton-my_app/sass/var/form/field/Number.scss

@include extjs-text-field-ui (
$ui: 'my_custom_cls',
$ui-font-size: 25px,
$ui-font-weight: bold,
$ui-color: #000000,
$ui-padding: 0px 0px 0px 5px,
$ui-background-color: #EBDEC1
4. When I come back to this config for the number field

fieldCls : x-form-field
all is OK

Link with this post : impossible to apply custom css to number field : https://www.sencha.com/forum/showthread.php?454133

4 Dec 2017, 12:32 AM
Very strange....

This morning, i open again my app with sencha Architect.
And you know what ?
My custom css for number field is appearing well !?!?!?

So, here is how it works :
the numberfield config "fieldCls" is set to "my_custom_cls".