4

Everything was fine, I would make a change, run grunt less:sitename and the changes would be reflected in the browser. Then all of a sudden I get this...

NameError: variable @modal-popup-breakpoint-screen__m is undefined

The file which this points to is in the Magento_Checkout module which I have not touched.

As this is a magento module and has nothing to do with any of my custom code I dont know where to go from here....

3
  • You should read How to Ask and make sure you provide a minimal reproducible example. We should be able to start with a vanilla install of Magento, make the same change you made, and then compile to see your error. If we can't do that we can't help you. Commented Jun 9, 2018 at 3:11
  • 1
    This also just happened to me, did you find what the cause was? Commented Jul 7, 2018 at 14:33
  • I am also facing the same issue please let me know how to resolve it. Commented Dec 6, 2018 at 5:30

2 Answers 2

0

I have faced this issue when we upgrade to Magento 2.1.16:

I have resolved the issue by adding below changes to the theme

1) ~/app/design/frontend/ThemePackage/theme/web/css/source/_theme.less add at line 29: @import 'components/_modals_extend.less';

2) Add "components/_modals_extend.less" folder and file at ~/app/design/frontend/ThemePackage/theme/web/css/source/

3) ~/app/design/frontend/ThemePackage/theme/web/css/source/components/_modals_extend.less add at line number 16**:**

@modal-slide-header__padding-vertical: 2.1rem; // added from \vendor\magento\magento2-base\lib\web\css\source\components_modals.less

@modal-popup__padding: 3rem; // added from \vendor\magento\magento2-base\lib\web\css\source\components_modals.less

@media-common : false; //custom from magento/theme-frontend-blank/web/css/styles-l.less

Here ThemePackage/theme can be any theme package and theme name.

Sign up to request clarification or add additional context in comments.

Comments

0

Issues may arise if you are missing .htaccess files from your pub and/or static folders.

Please double-check your pub and pub/static folders to see if they contain the necessary .htaccess files.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.