You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install a module which allows you to compile the less files using the native node.js less compiler (I'm working on such a module, but it isn't finished yet, I'm planning on releasing it as an open source module, teaser: it works over twice as fast as the php compiler)
Run bin/magento setup:static-content:deploy
Expected result
Every less file gets compiled correctly
Actual result
Error message appears:
...
=== adminhtml -> Magento/backend -> en_US ===
........................................................................................................................................................................................................................................................................................................................................................................................................................................
Compilation from source:
adminhtml/Magento/backend/en_US/css/styles-old.less
NameError: variable @field-date-icon--color is undefined in var/view_preprocessed/css/adminhtml/Magento/backend/en_US/css/styles-old.less on line 1055, column 36:
1054 @_icon-font-position: after,
1055 @_icon-font-color: @field-date-icon--color
1056 );
>
Extra info
I can see the the variable @field-date-icon--color being defined in: vendor/magento/theme-adminhtml-backend/Magento_Ui/web/css/source/_module-old.less but in the file vendor/magento/theme-adminhtml-backend/web/css/styles-old.less the import of the first file is commented out.
Other question: since those two are named *-old.less I assume they will be removed in the future, right? I can see in the Magento 2.1.0-rc1 version they still exists, is this correct?
Thanks!
The text was updated successfully, but these errors were encountered:
I was using the flag --strict-imports which only allows @import statements to be defined at the top of the less file and not somewhere in the middle or in media queries. This was the cause of the error. I now removed it and everything works perfectly fine.
Steps to reproduce
bin/magento setup:static-content:deploy
Expected result
Actual result
Extra info
I can see the the variable
@field-date-icon--color
being defined in:vendor/magento/theme-adminhtml-backend/Magento_Ui/web/css/source/_module-old.less
but in the filevendor/magento/theme-adminhtml-backend/web/css/styles-old.less
the import of the first file is commented out.Other question: since those two are named
*-old.less
I assume they will be removed in the future, right? I can see in the Magento 2.1.0-rc1 version they still exists, is this correct?Thanks!
The text was updated successfully, but these errors were encountered: