Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
how to fix warning Circular dependency detected?

have a good time

I have about 10 errors a night when I start an angular project And I do not understand what it means

How can I fix this error?

Warning: Circular dependency detected:
   src\app\@core\data\services\project-management\project\project-target.service.ts -> 
   src\app\@core\data\services\shared\data.service.ts -> src\app\auth\security.service.ts -> 
   src\app\@core\data\services\project-management\index.ts -> 
   src\app\@core\data\services\project-management\project\project-target.service.ts

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It means classes or modules are referencing each other. While you should aim to avoid this, it's not always possible.

For example, a circular dependency is when A is directly referencing B and vice versa: A -> B -> A, or indirectly A -> B -> C -> A.

If possible, you should break this chain of dependency. Maybe the modules in B can be moved into A or maybe the dependencies that both A and B reference can be moved to C.

In your case, you can see both of direct and indirect circular referencing.

Do I understand it correctly, that your index.ts is being referenced by other modules? If so, that should not happen. index.ts is the base file of the project and shouldn't be referenced by anything else in the src folder.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda