-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependencies not referenced correctly #4
Comments
Yes the latest version should have the new package names to catch up with primeng changes. |
I'm getting a I followed the example project to a T but still nothing 🤷♂️ Edit: specific error message is:
|
The odd part is I actually get a canvas with a single node (which is outlined by a "loading" animation, presumably). So cityscape is, in fact, imported into the project. |
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.
The text was updated successfully, but these errors were encountered: