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

176
Vistas
Create an angular library which can be consumed by lower versions of angular project

I have some common components in my angular 12 application which I am planning to create as an angular library so that other applications can also use it. We have some applications running on lower version of angular (e.g. angular 8 / angular 10) which will also use this common library.

I already created library in angular 12 which is working fine in angular 12 application. However, it is not working in other applications which are using angular 8 and angular 10.

Getting error like :

fesm2015/common-lib.js 12:145-163 "export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'

So, the main confusion is do I need create 3 different angular library for v8, v8 and v12 application. Or is there any way that I can create one library which can be consumed by all 3 angular applications (ver 8/10/12).

Please suggest the right way to proceed.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I have faced with same issue, and found a comment from Angular team member: https://github.com/angular/angular/issues/43949#issuecomment-951845346

So, Angular doesn't support usage of libraries that were produced higher versions of Angular than a version of consumed Application.

over 4 years ago · Santiago Trujillo 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