skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

Issues with running under Webpack #127

Closed acnebs closed 3 years ago

acnebs commented 4 years ago

Hi, I'm trying to run this under webpack, but dagre throws an error when I require nomnoml. To be specific, I have a React app created with create-react-app, that breaks when I try to use nomnoml inside of it.

It's an issue when dagre tries to import graphlib, wherein graphlib cannot be found, due to some sort of dependency-finding issue.

Is nobody else using nomnoml under Webpack? There don't seem to be any straightforward solutions to this problem, but there are various issues that people have had – just don't see how anyone else has actually fixed the problem.

Associated issues: https://github.com/dagrejs/dagre-d3/issues/129 https://github.com/mermaid-js/mermaid/issues/277

skanaar commented 4 years ago

As you say, this seems to be an issue with Dagre. They have a workaround posted, but the best thing would be for these things to just work out of the box. Not sure if nomnoml can do anything to alleviate the problem however...

skanaar commented 3 years ago

This should now be solved in version v1.3.0. 🎉

Please try it out and report any issues.