Open ccorcos opened 2 years ago
Just to be sure of something don't you have multiple Environment.ts files ?
Nope, just one Environment.ts file.
It would be much easier to debug if we started off with a dependency map and then narrowed in on cycles from there.
I'm running this in a project of mine and I'm seeing this as a cycle...
This is the
Environment.ts
imports.This is the
ToastRenderer.ts
imports.There's no cycle here, but your code says there is.
I also tried debugging your code but it was hard because there's no full dependency map like there was before.
Please do two things:
Refactor your code so that you generate a full map of what imports what else, just like I had before: https://github.com/ccorcos/import-cycles/blob/8a89c78b0c5e77879bf7ba20d3ab875dae0e3938/src/index.ts#L160-L225
Please try to figure out why your code does not work and fix it.