Questions tagged [angular-ivy]

Ivy is the code name for Angular's next-generation compilation and rendering pipeline. Use this tag for Angular questions which are specific to only the rendering engine.

Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and runtime instructions are used by default instead of the older compiler and runtime, known as View Engine.

213 questions
4
votes
2 answers

Abstracting @Injectable with Angular Ivy does not work

Update Opened issue for this question https://github.com/angular/angular/issues/34721 Intro In Angular Services are provided using the decorator @Injectable. @Injectable() // -> works export class MyService { constructor() {} } Abstracting…
Gregor Woiwode
  • 1,046
  • 1
  • 9
  • 12
4
votes
1 answer

Angular Library with Ivy enabled fails to load

I am trying to create an angular library project but I am getting this error in the console Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType (core.js:34470) at core.js:34488 at Array.forEach…
Neil Stevens
  • 3,534
  • 6
  • 42
  • 71
4
votes
0 answers

How can I debug an Angular 9 compilation error with IVY enabled?

Currently I am updating a project to Angular 9. Unfortunately I can not build it with IVY. The error message is ERROR in Cannot resolve type entity ɵngcc14.ɵu to symbol Without disabled IVY the project builds and serves properly. I think, it is…
Felix Lemke
  • 6,189
  • 3
  • 40
  • 67
4
votes
0 answers

Angular Ivy without zones: what is the most convenient way to trigger change detection?

I would like to get rid of the zones in my app. I am considering several options for triggering change detection: Manual triggering change detection by invoking this.changeDetectorRef.detectChanges() / ΘmarkDirty(this) in a component on every…
4
votes
2 answers

Library build fails with Angular 9

I am trying to migrate this library https://github.com/flauc/angular2-notifications from Angular 2+ to Angular 9. The original error was about the ModuleWithProviders that has become a generic type, so I fixed it. I also had an error described here…
Guerric P
  • 30,447
  • 6
  • 48
  • 86
4
votes
2 answers

cannot compile Ivy Rendering Engine in Angular 8

Error ERROR in node_modules/angular-datatables/src/angular-datatables.module.d.ts(8,22): error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class …
afeef
  • 4,396
  • 11
  • 35
  • 65
4
votes
0 answers

Angular exclude specific modules from being compiled with Ivy

I am using Angular 8 with ivy enabled. Everything works expect my devextreme components from devexpress. Currently this is not supported with Ivy. Is there a way to compile everything but these modules with Ivy?
Franki1986
  • 1,320
  • 1
  • 15
  • 40
4
votes
3 answers

TypeScript Failed to compile because Type declaration of 'any' loses type-safety

How should I address the following error message: Failed to compile /.../SoftwareLicenseCodes/index.tsx (14,20): Type declaration of 'any' loses type-safety. Consider replacing it with a more precise type. This error occurred during the build time…
user1283776
  • 19,640
  • 49
  • 136
  • 276
3
votes
2 answers

Angular component not rendering when passed as a string in a innerHtml attribute

I use an api that returns some html. Angular components are used in the html code but not shown in the application. How can I show an angular component when it is stored as a string? StackBlitz demo
Niels Prins
  • 535
  • 2
  • 11
3
votes
0 answers

It looks like '' has not been IVY compiled - it has no 'ɵcmp' field

I am currently using Angular 11. When I run the unit tests, all pass except one which says: Error: It looks like 'ResultsService' has not been IVY compiled - it has no 'ɵcmp' field I looked on the forums to see if anyone ran into this error but…
3
votes
1 answer

Angular 9 upgrade causes styling issues with matPrefix and mat-form-field only when Ivy is enabled

After updating my project from Angular 8 to 9 some of the Angular material mat-form-field controls ended up with weird styling issues. When comparing the generated code with the old Angular 8 version, I noticed that there are some new css classes…
CharithJ
  • 46,289
  • 20
  • 116
  • 131
3
votes
1 answer

Angular: strictTemplates - How to assign variables properly

I have in my Sample.html somewhere defined
LeO
  • 4,238
  • 4
  • 48
  • 88
3
votes
0 answers

Angular Ivy In a Library Breaks enableResourceInlining

I have created a simple Angular library "test-pub" (using nx g @nrwl/angular:lib test-pub --publishable). Then I've added a very basic component to it. super.component.html:

super works!

super.component.ts: import { Component, OnInit } from…
Kirill Metrik
  • 384
  • 1
  • 2
  • 12
3
votes
2 answers

Angular 9 routes giving blank pages with no errors

I've just upgraded to Angular 9 and created some child routes using lazy loading. Before these changes, my project and my routes worked perfectly but after these two changes, just my HomeComponent route (path: "") works correctly, but if I try to…
3
votes
0 answers

Will the Angular Ivy view engine have a public API?

An angular app I'm currently working on has several places where component templates must be dynamically created, for example to support differences in translation word order in bound content. Currently, this requires hauling around the ~500MB…
snort
  • 2,285
  • 3
  • 19
  • 21