NestJS циркулярная зависимость (наверное)

Рейтинг: 0Ответов: 0Опубликовано: 17.06.2023

Код выдает такую ошибку:

[Nest] 11732  - 17.06.2023, 18:30:35   ERROR [ExceptionHandler] Nest can't resolve dependencies of the ComplaintsService (ComplaintRepository, ?). Please make sure that the argument dependency at index [1] is available in the
in the ComplaintsModule context.

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

Error: Nest can't resolve dependencies of the ComplaintsService (ComplaintRepository, ?). Please make sure that the argument dependency at index [1] is available in the ComplaintsModule context.

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

Bing ai подсказывает что проблема в циркулярной зависимости, но я во всех трех модулях указал forwarRef. Так в чем же проблема? Подскажите пожалуйста

Код

Ответы

Ответов пока нет.