We are trying to upgrade Magento Version from 2.1.7 to 2.1.12. Upgrade process went well but after running static content deploy we are facing below issue. Like this many less files failed.
Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email.less Compilation from source: frontend/Codazon/fastest_outdoor/en_US/css/email.less Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less' ...... Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email-inline.less Compilation from source: frontend/Codazon/fastest_outdoor/en_US/css/email-inline.less Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less' ...................... Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-l.less Compilation from source: frontend/Codazon/fastest_outdoor/en_US/css/styles-l.less Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less' ...... Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-m.less Compilation from source: frontend/Codazon/fastest_outdoor/en_US/css/styles-m.less Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less'
We tried many different solutions. Here are they
1. Disabled redis and Varnish in our server and tested. Tried in our local machine also, same error.
2. Some other source suggested to change the name and place underscore before the less files. In that case they are ignored but deployment is successful as a result UI is breaking.
3. We logged all the files which are going through the static content deployment process found that _email.less is getting generated after the error, which is of no issue. How can we control the order of static content deploy.
4. Added jobs=0 to the command while running.
None of the above is helping. Please suggest if there is anything else we can try.
Hi @Manthan Dave
Thanks for the suggestion but there are no empty files. We are running out of all possible options.