ts config alias does not work at all
I'm testing this lib, and find some problems. I have a test folder with dependencies:
- src/index.tsx: ["src/pages/page1/index.tsx"]
- src/pages/page1/index.tsx: ["src/pages/page1/index.module.scss"]
But when I run yarn build which runs node scripts/build.js, madge listed dependencies of src/index.tsx as an empty array instead of including src/pages/page1/index.tsx
with extends in tsconfig:
without extends in tsconfig:
I installed madge globally, manually updated dependencies dependency-tree and detective-typescript, and seems it solves my task with tsconfig aliases
I had a similar issue and I managed to fix it by adding "baseUrl": "." to my tsconfig.json (despite this option being deprecated: https://www.typescriptlang.org/tsconfig#baseUrl)
I had a similar issue and I managed to fix it by adding
"baseUrl": "."to mytsconfig.json(despite this option being deprecated: https://www.typescriptlang.org/tsconfig#baseUrl)
But there are already baseUrl : "src" in my config.
I installed madge globally, manually updated dependencies
dependency-treeanddetective-typescript, and seems it solves my task with tsconfig aliases
What are the respective versions did you update to manually?
I installed madge globally, manually updated dependencies
dependency-treeanddetective-typescript, and seems it solves my task with tsconfig aliasesWhat are the respective versions did you update to manually?
Simply latest
I installed madge globally, manually updated dependencies
dependency-treeanddetective-typescript, and seems it solves my task with tsconfig aliasesWhat are the respective versions did you update to manually?
Simply latest
that's not work for me ... and adding "baseUrl": "." to tsconfig.json work
I installed madge globally, manually updated dependencies
dependency-treeanddetective-typescript, and seems it solves my task with tsconfig aliasesWhat are the respective versions did you update to manually?
Simply latest
that's not work for me ... and adding
"baseUrl": "."totsconfig.jsonwork
Finally, i solved this problem with option basedir. Cause I run madge cmd in another package dir of monorepo, it work right
@huntye1 I always set this option)
Now it work from the box or need to update dependencies?
I think I'm running into the same issue, what did you set basedir to that solved it? Madge works with vue as well unless I run madge from outside the project's directory.