Skip to content

Missing Interfaces and other elements in the GraphΒ #35

@JohT

Description

@JohT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions