Latest version changes is not working with w3 Total Cache plugin
-
The latest version changes are not working with the w3 Total Cache plugin
———————–
For Add to Cart for variable products, it’s showing an error “Please choose product options by visiting
“And in the console error is coming “
Uncaught SyntaxError: Cannot use import statement outside a module
“And to fix it, I have excluded below two files from cache plugins (Autoptimize, W3 Total Cache)
/wp-content/plugins/woocommerce-products-filter/ext/by_text/assets/js/husky.js
/wp-content/plugins/woocommerce-products-filter/ext/front_builder/js/boot.js
And here
boot.js
is forimport
other files so looking like due to that and cache pluginsUncaught SyntaxError: Cannot use import statement outside a module
error is coming'use strict'; import Helper from './builder/helper.js'; import Builder from './builder/builder.js'; //31-05-2023 document.addEventListener('woof_front_builder_start', e => woof_front_builder = new Builder(e.detail.button));
- The topic ‘Latest version changes is not working with w3 Total Cache plugin’ is closed to new replies.