Uncaught TypeError: The specifier “@wordpress/interactivity”
-
Hello and thanks for the plugin
When I edit as a vendor a product I get this error:
Uncaught TypeError: The specifier “@wordpress/interactivity” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.
I searched and found little about it and one that gave to me the solution:
Firefox es seems to have trouble with “@wordpress/interactivity” in the file “wp-includes/blocks/navigation/view.min.js” – it returns that same Uncaught TypeError.
If I change the beginning of that file from
import*as e from”@wordpress/interactivity”
to
import*as e from”/wp-includes/js/dist/interactivity.min.js”
They say that it happens with Firefox, but I have that problem also with Chromium version 108.0.5359.40 (Developer Build) Ubuntu 22.04 (64-bit). My Firefox version 127.0.2 (64 bits).
I have made the proposed solution, and the error has gone, but, of course, when I update WordPress, I would have to make it again if it is not changed.
I can’t test it only with Guttenberg because the error comes with Dokan-lite, but other users report with other modules that use interactivity.
https://www.ads-software.com/support/topic/auto-prefetch-urls-on-mouse-hover-not-working-with-wp-6-5-interactivity-api/
https://www.ads-software.com/support/topic/wordpress-navigation-overlay-menu-not-working-with-firefox-115/
https://www.ads-software.com/support/topic/when-the-plugin-is-activated-the-default-lightbox-feature-stops-working/
https://mytory.net/archives/15766
https://www.ads-software.com/support/topic/console-error-with-gutenberg-plug-in/Thanks again for your great work ?? Step-by-step reproduction instructions
- Install WordPress 6.5.5 and Dokan-lite 3.11.3
- Create a user with role vendor
- Create a product with that user
- The error appears in both browsers developer console
Versions
- WordPress 6.5.5 and Dokan-lite 3.11.3
- Ubuntu 22.04 (64-bit)
- Chromium version 108.0.5359.40 (Developer Build) and Firefox version 127.0.2 (64 bits).
- Twenty Twenty Four 1.1 subtheme
Now in github where I reported the error, they say that the plugin maintainers have to solve the problem.
Have a good day
- You must be logged in to reply to this topic.