cytoscape-angular
cytoscape-angular copied to clipboard
dependencies not referenced correctly
I'm using this in an angular 12 application and got several reference errors from this library. Eventually, I got it to work by changing the node-module directly by adding/changing the references in cytoscope-angular.js :
import { ButtonModule } from 'primeng/button'; import { DropdownModule } from 'primeng/dropdown'; import { FieldsetModule } from 'primeng/fieldset'; import { InputSwitchModule } from 'primeng/inputswitch'; import { InputTextModule } from 'primeng/inputtext'; import { OverlayPanelModule } from 'primeng/overlaypanel'; import { ProgressBarModule } from 'primeng/progressbar'; import { ProgressSpinnerModule } from 'primeng/progressspinner'; import { TooltipModule } from 'primeng/tooltip'; import { SpinnerModule } from 'primeng/spinner'; import { AutoCompleteModule } from 'primeng/autocomplete';
and
import * as cytoscape from 'cytoscape';
The errors were that cytoscape was not defined and the above primeng references had no exported module xx. It seems that each module has to be referenced individually and that cytoscape cannot be globally referenced without declaring it in an import.