#Nest can't resolve dependencies of the OrderService

2 messages · Page 1 of 1 (latest)

rose yew
#

I am getting this error and it is so weird I have

Nest can't resolve dependencies of the OrderService (PrismaService, EventTicketService, EventService, TicketService, OrderDetailsService, ?). Please make sure that the argument EmailProducerService at index [5] is available in the OrdersModule context.

Potential solutions:

  • Is OrdersModule a valid NestJS module?
  • If EmailProducerService is a provider, is it part of the current OrdersModule?
  • If EmailProducerService is exported from a separate @Module, is that module imported within OrdersModule?
    @Module({
    imports: [ /* the Module containing EmailProducerService */ ]
    })

I attached the code for email module and order module maybe I missed something.

weak tusk
#

You're showing the OrderModule (singular). The error is reporting about the OrdersModule (plural). Are these different modules