I am facing an issue while trying to implement the 'jvectormap' package in Node, as it has a dependency on jQuery.
My query is fairly straightforward. Whenever I attempt to import jVectorMap
, I encounter the following error:
Uncaught ReferenceError: jQuery is not defined
import $ from 'jquery';
import jVectorMap from 'jvectormap'
I have attempted importing jQuery as global.jquery
without success. What is the proper method for handling dependencies within Node packages?
Both imports are successful, but there seems to be an issue with jVectorMap accessing jQuery.