dependency-cruiser icon indicating copy to clipboard operation
dependency-cruiser copied to clipboard

What am I missing about rcdot? "'rcdot' is not a valid output type"

Open iftheshoefritz opened this issue 5 months ago • 1 comments

Summary

The rcdot output type seems like what I want for insights into my code, but I get this error when I try to use it:

yarn -s depcruise --include-only "^app" --exclude "test|mock|asset|icon" --focus "Checkout" --focus-depth 2 --output-type rcdot --ts-config ./tsconfig.json . | dot -T svg > graph.svg
ERROR: 'rcdot' is not a valid output type.

Do I have to install anything special to use --output-type rcdot?

Cheeky bonus issue: where can I find an explanation of what the different colours mean?

Context

I'm a beginner at dependency-cruiser. I'm just running it on my project, and can see the potential. Hints in the docs about finding dead code etc seem like they could be useful.

Environment

  • Version used: 13.1.2 (I know it's old, I went to a random old version that would work with my version of node)
  • Node version: 18.14.2
  • Operating System and version: MacOS Ventura 13.6.4

iftheshoefritz avatar Feb 02 '24 15:02 iftheshoefritz