"Message: maxItemsToDisplay is not defined" error message

910 views Asked by At

after upgrading to Magento 2.1.8, I start getting this:

Uncaught ReferenceError: Unable to process binding "if: function (){return getCartParam('summary_count') }"
Message: Unable to process binding "if: function (){return maxItemsToDisplay < getCartLineItemsCount() }"
Message: maxItemsToDisplay is not defined
    at if (eval at createBindingsStringEvaluator (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2624), <anonymous>:3:55)
    at ko.computed.disposeWhenNodeIsRemoved (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:3989)
    at evaluateImmediate (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1737)
    at Object.ko.computed.ko.dependentObservable (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1946)
    at init (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:3988)
    at /pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2989
    at Object.ignore (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1249)
    at /pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2988
    at Object.arrayForEach (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:151)
    at applyBindingsToNodeInternal (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2974)

please help

1

There are 1 answers

2
Ronn0 On

Did you try to do this already:

  1. [Delete folder] pub/static/frontend/[theme]
  2. [Delete folder] var/cache
  3. [Delete folder] var/view_preprocessed
  4. run command: php bin/magento deploy:mode:set production
  5. run command: php bin/magento setup:static-content:deploy