M2 – Uncaught TypeError: Cannot read property ‘items’ of undefined – /Magento_Checkout/js/model/totals.js

A bug story:

I faced an issue on a checkout that the JS error happen when selecting a shipping method.
I tried to check in some extension mixins javascript files but did not found anything wrong.
When I check if it has an error in XHR ajax calls. Then I found https://x-x-x.com/rest/dk/V1/guest-carts/xxx–xxx/shipping-information

Problem is: total information is passed to js object quote_totals is null – cause by a problem of XHR calls.

Leave a Reply

Your email address will not be published. Required fields are marked *