I am getting the error again & again, though I have removed/var/pub & pub/static/frontend Error while running static deploy command in Magento
 asked Jan 21, 2020 at 12:04
 
 
 
 Magento 2 Learner 
 
 7001 gold badge9 silver badges25 bronze badges
 
 - 
 This is the most explicit error message I saw in my life. I don't know what more could you expect?vitoriodachef– vitoriodachef2020年01月21日 12:07:25 +00:00Commented Jan 21, 2020 at 12:07
- 
 why you gave -ive vote, please give me solutionMagento 2 Learner– Magento 2 Learner2020年01月21日 12:08:48 +00:00Commented Jan 21, 2020 at 12:08
- 
 see this you may get help magento.stackexchange.com/a/264154/78648Waqar Ali– Waqar Ali2020年01月21日 12:09:05 +00:00Commented Jan 21, 2020 at 12:09
- 
 1You 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)vitoriodachef– vitoriodachef2020年01月21日 12:11:36 +00:00Commented Jan 21, 2020 at 12:11
1 Answer 1
@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
 answered Jan 21, 2020 at 12:24
 
 
 Explore related questions
See similar questions with these tags.
default