Coupling Graph doesn't work as expected
Closed this issue · 4 comments
mcerejo commented
I was trying to create the graph.svg with the dependencies, but the command returns an error. Is it just me or does that implementation requires something more or its broken?
wub commented
What's the error?
bmstefanski commented
We can't do much without a screenshot of the error and your machine specs, os, cpu architecture, etc @mcerejo
mcerejo commented
bmstefanski commented
Thanks,
I am not sure what's the issue and can't test it on windows, but there are two things that you could try:
- (Must have) Install graphviz (not sure how to do that on Windows, but you you're using wsl, it should be possible), you can find the guide here https://github.com/pahen/madge#graphviz-optional and add it to the PATH manually https://github.com/pahen/madge#whats-the-error-write-epipe-when-exporting-graph-to-image
- Try executing that command directly in the console instead of running with yarn
"npx madge --extensions js,jsx,ts,tsx,css,md,mdx ./ --exclude '.next|tailwind.config.js|reset.d.ts|prettier.config.js|postcss.config.js|playwright.config.ts|next.config.js|next-env.d.ts|instrumentation.ts|e2e/|README.md|.storybook/|.eslintrc.js' --image graph.svg"
- the fact that error says something aboutnext.config.js
tells me it could be an escaping issue