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

Circular dependencies cause typescript compilation to fail #1105

Closed
willdunklin opened this issue Oct 29, 2022 · 0 comments
Closed

Circular dependencies cause typescript compilation to fail #1105

willdunklin opened this issue Oct 29, 2022 · 0 comments

Comments

@willdunklin
Copy link

I was running into an issue where boardgame.io several imports were failing as undefined.

After a bit of digging it seems like the project has many circular dependencies. I was able to visualize them in this graph generated by dependency-cruiser:
dep

Each pair of yellow edges represents a circular dependency. Most seem to deal with types.ts, but many more seem to be structural. I'm not sure how easily resolvable these issues are, but it has crippled the use of typescript in my project unfortunately.

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

1 participant