Closed israel-hdez closed 6 years ago
It should require('jquery')
unless you already are using globals: https://github.com/cytoscape/cytoscape.js-navigator/blob/master/cytoscape-navigator.js#L886
Not sure if this helps, but for me, it fails here: https://github.com/cytoscape/cytoscape.js-navigator/blob/master/cytoscape-navigator.js#L364
@israel-hdez Does 0006766 resolve it for you?
@maxkfranz Yes, it's solved.
Published 1.3.3
I wanted to use the navigator in a React app. I guess in a React app the module gets defined as a CommonJs module.
When initializing the navigator, if I set a container, I get "jQuery is not defined" error.
I guess the
_initPanel
function is referencing the global jQuery object rather than using the local$
variable.