#using service from same module

3 messages · Page 1 of 1 (latest)

short summit
#

Hello

I have a “Invoicing Service” in the same module as my controller and trying to use it in my cqrs query handler also in the same module.

Whenever I try to pass the InvoicingService to the query handler constructor I get an error when trying to start nest js that the service “InvoicingService” cannot be found

#

I even tried injecting the service differently like the nestjs docs suggest private invoicingService: InvoicingService in the constructor and still had issues.

worldly sundialBOT
#

When asking for help with a problem, don't just say, "X doesn't work" or "Y did not fix it" actually describe the error.
If there is an error message, share it. If it did not function as expected, describe how it behaved and how you expected it to behave.
If you haven't already, or haven't recently, share the code that is not working and any code we may need to help diagnose the error.