Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coupling Graph doesn't work as expected #283

Closed
mcerejo opened this issue Mar 4, 2024 · 4 comments
Closed

Coupling Graph doesn't work as expected #283

mcerejo opened this issue Mar 4, 2024 · 4 comments

Comments

@mcerejo
Copy link

mcerejo commented Mar 4, 2024

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
Copy link

wub commented Mar 5, 2024

What's the error?

@bmstefanski
Copy link
Member

We can't do much without a screenshot of the error and your machine specs, os, cpu architecture, etc @mcerejo

@mcerejo
Copy link
Author

mcerejo commented Mar 13, 2024

image
image

These are the errors that are triggered. The popup window is for the tailwind.config.js, postcss.config.js, prettier.config.js.

I'm using yarn (v1.22.19 and v4.1.1), node v18 on a windows 10 pc.
image

@bmstefanski
Copy link
Member

bmstefanski commented Mar 15, 2024

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 about next.config.js tells me it could be an escaping issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants