Front-error in Add-to-cart Block Gutenberg Category
-
Just the next version to 8.0.3 up to last (8.2.1), I started to have an error in the add-to-cart action in the widget (using Gutenberg widgets of WooCommerce):
Cannot read properties of undefined (reading 'cart')
Additionally, as soon as the page is opened without taking any action, you begin to see this error:
product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 Uncaught TypeError: Cannot read properties of undefined (reading 'cart') at Object.hasCartLoaded (product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:5203) at product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:7810 hasCartLoaded @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 (anonymous) @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 requestIdleCallback (async) afterLoad @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 (anonymous) @ wc-interactivity.js?ver=11.1.2:1 (anonymous) @ wc-interactivity.js?ver=11.1.2:1 product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 [Violation] 'requestIdleCallback' handler took 7558ms [Violation] Forced reflow while executing JavaScript took 416ms product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'cart') at product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:7746 at data.min.js?ver=ff7eb3945f963be850ff:2:19755 at data.min.js?ver=ff7eb3945f963be850ff:2:18707 at p (data.min.js?ver=ff7eb3945f963be850ff:2:9288) at data.min.js?ver=ff7eb3945f963be850ff:2:12432 at redux-routine.min.js?ver=0be1b2a6a79703e28531:9:750 at data.min.js?ver=ff7eb3945f963be850ff:2:11500 at Object.dispatch (data.min.js?ver=ff7eb3945f963be850ff:2:12370) at data.min.js?ver=ff7eb3945f963be850ff:2:17168
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Front-error in Add-to-cart Block Gutenberg Category’ is closed to new replies.