kaluginserg / cytoscape-node-html-label

Labels for cytoscape node. Demo:
https://kaluginserg.github.io/cytoscape-node-html-label/
MIT License
102 stars 43 forks source link

Registration issue #60

Open GlitchEclipse opened 3 years ago

GlitchEclipse commented 3 years ago

I am having an issue with the extension because of a registration issue that recently came up and is preventing my cytoscape diagram from loading. Error is:

Can not register nodeHtmlLabel for core since nodeHtmlLabel already exists in the prototype and can not be overridden

I followed the instructions to register the extension on the ngInit() of my diagram as follows:

var nodeHtmlLabel = require('cytoscape-node-html-label'); nodeHtmlLabel(cytoscape);

I am not sure how to resolve. The extensions are registered when I load the component, but no matter what I try I am getting this error because it thinks it is already loaded. Is there a way to unregistered it so when it is registered again there will not be an issue? Can you offer a recommendation on how to resolve?

Thank you