You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use ng2-cytoscape inside my meteor angular 2 projekt.
I've imported the Module via import { NgCytoscapeModule } from "ng2-cytoscape/dist"; inside my app.module.ts and my first attempt to include the component produces the following error inside the browser (with no rendered content):
modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:39758 Uncaught Error: Template parse errors:
Can't bind to 'elements' since it isn't a known property of 'ng2-cytoscape'.
1. If 'ng2-cytoscape' is an Angular component and it has 'elements' input, then verify that it is part of this module.
2. If 'ng2-cytoscape' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("<ng2-cytoscape [ERROR ->][elements]="graphData"></ng2-cytoscape> "): ng:///AppModule/GrapherComponent.html@0:15
'ng2-cytoscape' is not a known element:
1. If 'ng2-cytoscape' is an Angular component, then verify that it is part of this module.
2. If 'ng2-cytoscape' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<ng2-cytoscape [elements]="graphData"></ng2-cytoscape> "): ng:///AppModule/GrapherComponent.html@0:0
at syntaxError (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:39758)
at TemplateParser.parse (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:50855)
at JitCompiler._compileTemplate (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:65058)
at modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:64977
at Set.forEach (<anonymous>)
at JitCompiler._compileComponents (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:64977)
at modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:64864
at Object.then (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:39747)
at JitCompiler._compileModuleAndComponents (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:64863)
at JitCompiler.compileModuleAsync (modules.js?hash=72acef43a1ecfa85e6c7ff1a5a53a650625d7c7d:64792)
It says that ng2-cytoscape is not a known element (got no other errors in the console or somewhere else).
Is it necessary to install the cytoscape package separately (its already located in node_modules but not in ng2-cytoscape/node_modules? Or do I have to add something to the package.json?
additionally I've added my package.json from the project and directly from the node_modules/ng2-cytoscape folder.
Hello,
I am trying to use ng2-cytoscape inside my meteor angular 2 projekt.
I've imported the Module via
import { NgCytoscapeModule } from "ng2-cytoscape/dist";
inside myapp.module.ts
and my first attempt to include the component produces the following error inside the browser (with no rendered content):It says that
ng2-cytoscape is
not a known element (got no other errors in the console or somewhere else).Is it necessary to install the cytoscape package separately (its already located in
node_modules
but not inng2-cytoscape/node_modules
? Or do I have to add something to thepackage.json
?additionally I've added my
package.json
from the project and directly from thenode_modules/ng2-cytoscape
folder.package.json
node_modules/ng2-cytoscape/package.json
Thanks!
The text was updated successfully, but these errors were encountered: