Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less issue #1

Open
patrickpeng2091 opened this issue May 17, 2020 · 3 comments
Open

less issue #1

patrickpeng2091 opened this issue May 17, 2020 · 3 comments

Comments

@patrickpeng2091
Copy link

hello

`
Deploy using quick strategy
frontend/Magento/blank/en_US 2365/2365 ============================ 100% 6 secs
adminhtml/Magento/backend/en_US 2482/2482 ============================ 100% 6 secs
frontend/Magento/luma/en_US 2382/2382 ============================ 100% 5 secs
frontend/PatrickPeng/studio/en_US 88/2390 =>-------------------------- 3% 2 secs
Compilation from source: /var/www/magento2/lib/web/mage/gallery/gallery.less
variable @media-common is undefined in file /var/www/magento2/var/view_preprocessed/pub/static/frontend/PatrickPeng/studio/en_US/css/source/_theme.less in _theme.less on line 128, column 9
126| // _____________________________________________
127|
128| & when (@media-common = true) {
frontend/Magento/blank/en_US 2365/2365 ============================ 100% 6 secs
adminhtml/Magento/backend/en_US 2482/2482 ============================ 100% 6 secs
frontend/Magento/luma/en_US 2382/2382 ============================ 100% 5 secs
frontend/PatrickPeng/studio/en_US 2110/2390 ========================>--- 88% 7 secs
Compilation from source: /var/www/magento2/vendor/magento/theme-frontend-blank/web/css/print.less
variable @media-common is undefined in file /var/www/magento2/var/view_preprocessed/pub/static/frontend/PatrickPeng/studio/en_US/css/source/_theme.less in _theme.less on line 128, column 9
126| // _____________________________________________
127|
128| & when (@media-common = true) {
129|
130| .button-container {
131| //margin-bottom: 20px;

Compilation from source: /var/www/magento2/vendor/magento/theme-frontend-blank/web/css/email-inline.less
variable @media-common is undefined in file /var/www/magento2/var/view_preprocessed/pub/static/frontend/PatrickPeng/studio/en_US/css/source/_theme.less in _theme.less on line 128, column 9
126| // _____________________________________________
127|
128| & when (@media-common = true) {
frontend/Magento/blank/en_US 2365/2365 ============================ 100% 6 secs
adminhtml/Magento/backend/en_US 2482/2482 ============================ 100% 6 secs
frontend/Magento/luma/en_US 2382/2382 ============================ 100% 5 secs
frontend/PatrickPeng/studio/en_US 2390/2390 ============================ 100% 7 secs

`

how to fix ?

@sanaeefar-saeed
Copy link

sanaeefar-saeed commented Jul 12, 2020

you could import _responsive.less exists in lib and lib/variable
or just remove the @media_common variable in theme.less

& when (@media-common = true) { => & when (true)

@arshad483
Copy link

Same Error still exists
Screenshot from 2021-04-30 11-31-40

@Priyabaghelgithub
Copy link

On Running this command : F:\xampp\htdocs\mag>php bin/magento s:s:d -f**

Got Error :- Compilation from source: F:/xampp/htdocs/mag/vendor/magento/theme-frontend-blank/web/css/email-inline.less
variable @media-common is undefined in file F:/xampp/htdocs/mag/var/view_preprocessed/pub/static/frontend/Pronko/consulting/en_US/css/source/_theme.less in _theme.less on line 128, column 9

Please Provide How to correct it line by line

Deploy using quick strategy
frontend/Magento/blank/en_US 2269/2269 ============================ 100% 1 min
adminhtml/Magento/backend/en_US 2908/2908 ============================ 100% 31 secs
frontend/Magento/luma/en_US 2285/2285 ============================ 100% 25 secs
frontend/Pronko/consulting/en_US 757/2293 =========>------------------ 33% 9 secs
Compilation from source: F:/xampp/htdocs/mag/lib/web/mage/gallery/gallery.less
variable @media-common is undefined in file F:/xampp/htdocs/mag/var/view_preprocessed/pub/static/frontend/Pronko/consulting/en_US/css/source/_theme.less in _theme.less on line 128, column 9
126| // _____________________________________________
127|
128| & when (@media-common = true) {
frontend/Magento/blank/en_US 2269/2269 ============================ 100% 1 min
adminhtml/Magento/backend/en_US 2908/2908 ============================ 100% 31 secs
frontend/Magento/luma/en_US 2285/2285 ============================ 100% 25 secs
frontend/Pronko/consulting/en_US 2184/2293 ==========================>- 95% 17 secs
Compilation from source: F:/xampp/htdocs/mag/vendor/magento/theme-frontend-blank/web/css/email-inline.less
variable @media-common is undefined in file F:/xampp/htdocs/mag/var/view_preprocessed/pub/static/frontend/Pronko/consulting/en_US/css/source/_theme.less in _theme.less on line 128, column 9
126| // _____________________________________________
127|
frontend/Magento/blank/en_US 2269/2269 ============================ 100% 1 min
adminhtml/Magento/backend/en_US 2908/2908 ============================ 100% 31 secs
frontend/Magento/luma/en_US 2285/2285 ============================ 100% 25 secs
frontend/Pronko/consulting/en_US 2293/2293 ============================ 100% 39 secs
frontend/Evince/shoptheme/en_US 2286/2286 ============================ 100% 42 secs
Compilation from source: F:/xampp/htdocs/mag/vendor/magento/theme-frontend-blank/web/css/print.less
Execution time: 555.11294913292ined in file F:/xampp/htdocs/mag/var/view_preprocessed/pub/static/frontend/Pronko/consult
ing/en_US/css/source/_theme.less in _theme.less on line 128, column 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants