woocommerce / woocommerce-blocks

(Deprecated) This plugin has been merged into woocommerce/woocommerce
https://wordpress.org/plugins/woo-gutenberg-products-block/
GNU General Public License v3.0
403 stars 218 forks source link

Occasional ChunkLoadError when people view the cart page #6062

Closed andfinally closed 2 years ago

andfinally commented 2 years ago

Describe the bug

On three occasions, WooCommerce.com users have run into a ChunkLoadError error on the WooCommerce.com cart page. The cart block doesn't render properly, and they get the error in their JS console.

To reproduce

Steps to reproduce the behavior:

  1. Go to https://woocommerce.com/products/m2-card-reader/ (or any other product page).
  2. Add the product to your cart, so you are redirected to the cart page.

Expected behavior

We expect to see the rendered cart block.

Screenshots

Expected

Error view

JS error

Environment

WordPress (please complete the following information):

Additional context

Slack Zen ticket Slack Zen ticket Zen ticket

andfinally commented 2 years ago

Just discussing with Rubik. It's hard to reproduce this one as it only happens rarely. It's possible this is related to our recent update to WC 6.3 rc2. We merged that on 7 March, and the first case of this issue was 10 March. @senadir suggested we flush the cache for files under wp-content/plugins/woo-gutenberg-products-block/build whenever we update the Cart blocks code.