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

3.3K
Views
Angular 9 Ivy: el tipo genérico 'ɵɵFactoryDef' requiere 2 argumentos de tipo

Parece que Angular Ivy aún no está lista. Estoy tratando de construir mi proyecto usando ivy, que es la idea principal para Angular 9. Muchas de las bibliotecas no son compatibles con esta característica, una de estas bibliotecas es @angular/flex-layout . El material y el trabajador de servicios también tienen el mismo problema.

Después de usar ng build --prod --aot -c=production script para compilar mi proyecto, obtuve:

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@angular/flex-layout/core/typings/media-trigger/media-trigger.d.ts:71:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s). 71 static ɵfac: ɵngcc0.ɵɵFactoryDef<MediaTrigger>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@angular/flex-layout/extended/typings/show-hide/show-hide.d.ts:18:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s). 18 static ɵfac: ɵngcc0.ɵɵFactoryDef<ShowHideStyleBuilder>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/@angular/flex-layout/extended/typings/show-hide/show-hide.d.ts:49:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s). 49 static ɵfac: ɵngcc0.ɵɵFactoryDef<ShowHideDirective>;

El error es más largo que lo que escribí anteriormente, me tomé mi tiempo para tener una buena búsqueda de este problema, nada sobre la mesa, pero deshabilitar ivy, que no es una buena opción.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Afortunadamente, se lanzó Angular 9.1 y el problema se resolvió. Después de actualizar a 9.1 (ejecutando ng update @angular/cli @angular/core ), eliminé mis node_modules y los reinstalé nuevamente. Luego actualicé mi mecanografiado de 3.7.5 a 3.8.3 . Ahora el ngcc funciona bien y no tengo errores después de construir.

Para más información: Angular Versión 9.1

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!