Infinite loading button on Shopify theme

Today I’ve a problem with a Shopify theme when I try to put on cart an Item. The button is infinite loading.
I’ve an JS error in console and I suspect this come from here:

TypeError: Cannot read property 'classList' of null
    at Product._setCartCountBubble (theme.js?v=14877781539576074710:8609)
    at theme.js?v=14877781539576074710:8434

The line 8609 of the file is:

this.cartCountBubble.classList.remove(this.classes.hidden);

That’s right, cartCountBubble is empty in Object:

cartCountBubble: null

I don’t know where it could have come from other than here and I can’t put all the code back together to understand….

90 thoughts on “Infinite loading button on Shopify theme”