-1

I am getting the error again & again, though I have removed/var/pub & pub/static/frontend Error while running static deploy command in Magento

4
  • This is the most explicit error message I saw in my life. I don't know what more could you expect? Jan 21, 2020 at 12:07
  • why you gave -ive vote, please give me solution Jan 21, 2020 at 12:08
  • see this you may get help magento.stackexchange.com/a/264154/78648
    – Waqar Ali
    Jan 21, 2020 at 12:09
  • 1
    You are using an undefined variable in one of your less files the error clearly states it. pub/static files are generated from module and theme files (where the error is introduced). removing files from pub/static won't do you any good. You have to find your less file in your modules or theme and remove the line of code that uses an undefined variable. You also have to remove var/view_preprocessed (also written in the error message) Jan 21, 2020 at 12:11

1 Answer 1

2

@mobile-cart-padding is need to defined at your variable.less or _extends.less files at your theme folder.

After that, you need to do static content deploy

1

Your Answer

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

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