Open mlandisbqs opened 6 months ago
I think I know what the issue is. The "Error: Too many edges" error is from mermaid v10.6.1 or earlier. You need at least version v10.7.0 or later to support the maxEdges
feature.
Afterwards, you'll either get a Edge limit exceeded. ${edges.length} edges found, but the limit is ${config.maxEdges}.
error, or it will work!
npx
by default uses a cached version of @mermaid-js/mermaid-cli
, so you have to run npx @mermaid-js/mermaid-cli@latest
to download and install the latest version.
I'm trying to use mermaid to visualize NestJS Dependencies. We have a ton of modules/dependencies and the generated source for the diagram has between 700 and 800 edges.
Max edges should be configurable based on this PR: https://github.com/mermaid-js/mermaid/pull/5086/files
How do I configure it? I've tried creating a config file and passing it...
Sample run...