Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!