Firefox issue with @wordpress/interactivity module load
-
I’m building a new Woocommerce site using roots/sage as my base theme (version 11) and when trying to add a product filter to a product archive page, I’m console errors such as:
Uncaught TypeError: The specifier “@wordpress/interactivity” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”. product-filters.js:1:17I get 4 of these messages in the console and the filters whilst visible are not functioning. This only occurs in Firefox as far as I know, I have version 143.0.1. In Chrome everything is as it should be.
I did come across this thread from a year go with a similar issue – https://ww.wp.xz.cn/support/topic/importmap-wordpress-interactivity/ where @becleung suggested it was because there is no priority set on the add_action in wp-includes/class-wp-script-modules.php. I have however tried adding the suggested code to my theme and whilst it gets rid of the original error, it introduces new ones:
Uncaught TypeError: can't access property "symbol", r is undefined
https://mtswheelsolutions.localhost/app/plugins/woocommerce/assets/client/blocks/woocommerce/product-filter-price.js?ver=b040f78c37f50f902e02:1
product-filter-price.js:1:402Does anyone know how to get around this?
The topic ‘Firefox issue with @wordpress/interactivity module load’ is closed to new replies.