tylingsoft / dagre-layout

Out-of-box replacement for dagrejs/dagre
MIT License
34 stars 5 forks source link

How you supposed to import the lib? #35

Open matsad3547 opened 2 years ago

matsad3547 commented 2 years ago

Thanks for taking up this project! I'm having issues switching from the normal dagre lib when importing. I had been just using import dagre from 'dagre' then following the wiki directions directly. With the dagre-layout import, however, I'm getting TypeError: Cannot read properties of undefined (reading 'Graph'). I tried several options, but the usage isn't clear. Are you no longer bundling graphlib? If so, the dagre wiki is no longer a good guide on how to set up the lib.