79470353

Date: 2025-02-26 16:11:26
Score: 1.5
Natty:
Report link

Ensure that your services are not causing circular dependencies. If your SubjectService depends on SubSubjectService and vice versa, you might need to use forwardRef in the service providers as well. Have you tried this?

@Injectable()
export class SubjectService {
  constructor(
    @Inject(forwardRef(() => SubSubjectService))
    private readonly subSubjectService: SubSubjectService,
  ) {}
}
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Illia Haponov