-
Notifications
You must be signed in to change notification settings - Fork 319
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 imports are missed when using …/index.ts
files
#322
Comments
…/index.ts
files…/index.ts
files
I dug into this and found the underlying bug: dependents/node-filing-cabinet#102 |
Ignore that, this seems to be another issue. When I (explicitly) pass |
So, it seems the bug can be attributed to different things:
I’m still seeing some odd things going on when using it with the I’ll leave this issue open for the maintainers to decide if they want to work around the |
looks similar to When fixing this, try fix the other one together. |
Same issue when using Seems to ignore res that imported the module without index file in path With Is there a way to efficiently debug this? I'm in a monorepo-ish project with complex structure and lots of configurations for various cases (multiple tsconfigs, multiple webpack configs etc). |
I have |
This is probably the same reason as #271 (comment), the parsed integer and not original string for
|
EDIT: never mind, forgot that I had edited filing-cabinet. The issue is the same as #271 (comment) OLD: OK the relevant setting is
then the index.ts files are checked. |
Strangely, that fix of passing in a tsconfig with module of commonjs no longer seems to work. It works fine on madge version |
Also ran into this issue where imports in TypeScript files that use an index file were not detected on madge version |
I ran into this too on madge 6.1.0. Seems like an update to dependency-tree will fix it. #371 (comment) I tried the workarounds listed here (new tsconfig, changing moduleResolution, etc) but only upgrading dependency-tree worked for m. |
Madge is not able to identify circular imports when using a folder with an
index.ts
file.To Reproduce
aap/index.ts
:noot.ts
:mies.ts
:When renaming
aap/index.ts
toaap.ts
and changing theNoot
import to./noot
, it does see the circular import.The text was updated successfully, but these errors were encountered: