Closed jchannon closed 2 years ago
You could simply make the ApiModule
abstract to avoid this.
Otherwise, how do you envision this to work? Carter will automatically look for modules and attempt to instantiate them. So when it finds ApiModule
, it tries to create that one but fails because it cannot resolve modulePath
.
You get a DI error when you have the following