React-diagrams: Can't DeSerialize node with default port

Created on 15 Feb 2018  路  1Comment  路  Source: projectstorm/react-diagrams

I'm trying to autoDistribute my nodes (using dagre, as the samples).
When I use the method and the Diagram contains a Node with a DefaultPortModel inside, it gives this error:
cannot find factory for port of type: [default]

I tried with no ports and it seems to be fine, is there a way to solve this? Why the "default" port can't be found?
Thank you!

answered question

Most helpful comment

Try this:
engine.installDefaultFactories();

It seems that the factory of port is not defined.

>All comments

Try this:
engine.installDefaultFactories();

It seems that the factory of port is not defined.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhijitnandy2011 picture abhijitnandy2011  路  3Comments

Naveenraj006 picture Naveenraj006  路  3Comments

CarlousF picture CarlousF  路  3Comments

schecter22107 picture schecter22107  路  3Comments

ganesh-sankey picture ganesh-sankey  路  4Comments