enter image description here

When running php bin/magento setup:static-content:deploy command it shows above error, I just replace the magento 2.1.6 files to magento 2.1.0 files now theme working fine but when run deploy command it shows the error.Please help somebody..

1 Answer 1


Show me all file print.less, please.

Variable @media-common set in /lib/web/css/source/lib/_responsive.less

May be your theme override this core file and it no contains the variable? Check file in this path:


Also try to reset the cache in /var/view_preprocessed and try again.

rm -rf var/view_preprocessed && php bin/magento setup:static-content:deploy


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.