Hi π,
i'm getting a lot of error messages when trying to scan react-router (as an example).
Most of them are
Error: external module ... for re-export could not be found: Ignoring export... and
Error: Could not resolve module:....
Details see attached log below. I'm not sure if these messages are ok or not.
Anyway, I suspect missing data in the Graph. For example, I can't find an Interface node for Location or the (re)exported type of it in the type of it in the index.ts. There is only a ExternalDeclaration where I couldn't find a way to find out if this is a type, interface or class. Overall, I only get 16 Interfaces. There should be more than 50 if I counted them right in my IDE.
Are there any additional steps I need to take care of before I start the scan? Are only specific project structures supported? Or might this be a bug?
Use case
As a software engineer that keep an eye on micro architecture I'm not only interested in dependencies between modules but also on how strong the resulting coupling might be. Calling a function or extending a class from another module leads to more coupling than for example referencing a type alias or an interface.
I want to query the number of interfaces a module uses from another one, the number of types (type aliases), the number of function calls, etc. .This will then also help to calculate a kind of "Abstractness" similar to Object Oriented Design Metrics ( Archived Example ).
Steps to reproduce
If I can provide any additional information or help let me know.
Thanks π very much.
Johannes
Hi π,
i'm getting a lot of error messages when trying to scan react-router (as an example).
Most of them are
Error: external module ... for re-export could not be found: Ignoring export...andError: Could not resolve module:....Details see attached log below. I'm not sure if these messages are ok or not.
Anyway, I suspect missing data in the Graph. For example, I can't find an
Interfacenode for Location or the (re)exported type of it in the type of it in the index.ts. There is only aExternalDeclarationwhere I couldn't find a way to find out if this is a type, interface or class. Overall, I only get 16 Interfaces. There should be more than 50 if I counted them right in my IDE.Are there any additional steps I need to take care of before I start the scan? Are only specific project structures supported? Or might this be a bug?
Use case
As a software engineer that keep an eye on micro architecture I'm not only interested in dependencies between modules but also on how strong the resulting coupling might be. Calling a function or extending a class from another module leads to more coupling than for example referencing a type alias or an interface.
I want to query the number of interfaces a module uses from another one, the number of types (type aliases), the number of function calls, etc. .This will then also help to calculate a kind of "Abstractness" similar to Object Oriented Design Metrics ( Archived Example ).
Steps to reproduce
yarn install || yarnnpx --yes @jqassistant/ts-lce >jqassostant-typescript-scan.logIf I can provide any additional information or help let me know.
Thanks π very much.
Johannes