UNPKG

@nestjs/typeorm

Version:

TypeORM for NestJS: connections and repositories through dependency injection, entities, transactions and multiple databases.

7 lines (6 loc) • 404 B
export class CircularDependencyException extends Error { constructor(context) { const ctx = context ? ` inside ${context}` : ``; super(`A circular dependency has been detected${ctx}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Also, try to eliminate barrel files because they can lead to an unexpected behavior too.`); } }