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 dependency that doesn't exist #128

Open
CarlOlson opened this issue Jul 5, 2024 · 0 comments
Open

Circular dependency that doesn't exist #128

CarlOlson opened this issue Jul 5, 2024 · 0 comments

Comments

@CarlOlson
Copy link

I tried rewatch in a large monorepo and got an non-existent circular dependency error.

The code looks like this:

  • ProjectFrontend namespace: false
    • Server
    • Component
    • Api
    • Context
  • ProjectBackend namespace: true
    • UnrelatedModule
      • Make Functor
        • module Server = ...

Component -> Api -> ProjectBackend.UnrelatedModule -> Server -> Api

ProjectFrontend uses types from ProjectBackend, but not from UnrelatedModule. It appears that it is mixing up the Server module inside the functor with Server module in ProjectFrontend.

I believe it has to do with the namespace option. Changing ProjectFrontend to namespace: true results in different errors that are fixable.

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