Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

101
Vistas
NestJS dependency injection and TransformPipe

I've created a module A, that has an exported provider AService. Module B imports module A and has an exported BTransformPipe provider, that uses AService. Now, my understanding is, that when I import module B in module C, I should be able to use BTransformPipe in controller declared in module C, without declaring any further dependencies, but NestJS fails to inject AService in BTransformPipe used in module C. Am I missing anything?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Enhancers don't really go in the providers array nor do they get resolved from there. If you use BTransformPipe in CModule, then CModule needs to have access to all of the dependencis of BTransformPipe. To make this easy to keep track of, your BModule can have AModule in the imports and the exports and then you'll just need to have BModule in the imports of the module where you're wanting to use the BTransformPipe.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda