#Dependency Injection Issues

2 messages · Page 1 of 1 (latest)

proper fable
#

Hey folks, I'm hitting a DI issue on a pretty simple project. Without going into the specifics, maybe would be easier to step back and conceptually understand how imports, providers, controllers and modules need to work inside of Nest.js.

What would be the best way to do the following:

Structure:
DataDTOA
ControllerA
ServiceA
ModuleA

DataDTOB
ControllerB
ServiceB
ModuleB

ControllerA needs to use something ServiceB, how does this get setup?

vague stone
#

ModuleB has ServiceB in both providers and exports , then ModuleA has ModuleB in imports