vectorMap is not a function in Gutenberg
-
Hello Enrico,
I’m trying to add a default world map through a widget placed inside Gutenberg custom field block.
I receive two errors in dev tools console:
1. jquery-jvectormap-world_merc_en.js?ver=5.4:3 Uncaught TypeError: $.fn.vectorMap is not a function
at jquery-jvectormap-world_merc_en.js?ver=5.4:3
at jquery-jvectormap-world_merc_en.js?ver=5.4:4
2.jquery-jvectormap-2.0.3.min.js?ver=2.0.3:2 Uncaught Error: Attempt to use map which was not loaded: world_merc_en
at new jvm.Map (jquery-jvectormap-2.0.3.min.js?ver=2.0.3:2)
at HTMLDocument.<anonymous> ((index):176)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)Same errors appear when testing Italy map and example camera map.
I’m using plugin Version 6.3.6, WordPress version 5.4
This happens on local environment and when testing it on live site.Could you please help suggest what might cause these mistakes?
p.s. When tested in on a newly created site with a default editor, there have been no mistakes and the map loaded at once
- The topic ‘vectorMap is not a function in Gutenberg’ is closed to new replies.