How to fix «Unable to process binding "if: function (){return maxCartItemsToDisplay < getCartLineItemsCount() }" Message: maxCartItemsToDisplay is not defined»?

01

The solution:

In my case, the error was caused by the Hungersoft One Step Checkout (HS_OneStepCheckout) module.
I have fixed it in the app/code/HS/OneStepCheckout/view/frontend/layout/checkout_index_index.xml file by a replacement from

<item name="component" xsi:type="string">HS_OneStepCheckout/js/view/summary/cart-items</item>

to

<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/cart-items</item>