Magento – mini cart is not working magento 2

magento2mini-cart

When I add new product to cart. It is adding that products to cart but mini cart doesn't shows anything.
and my console has following error.

TypeError: this.itemRenderer is undefined

can anyone tell what is because of this.

Best Answer

I think you changed the block from 'minicart' to a another block.
Please make sure that the checkout_cart_sidebar_item_renderers.xml
(vendor/magento/module-checkout/view/frontend/layout/checkout_cart_sidebar_item_renderers.xml)
have the same block, in which the 'itemRenderer' was set.

Related Topic