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
0
votes
1 answer

Issue with imports/exports in library since migrating to angular 9 and Ivy

I am using ng-inline-svg (latest version i.e. 10.0.0) and I am trying to migrate a library to angular 9 with Ivy. Since updating the angular version, I get the following error: ERROR in Symbol InlineSVGModule declared in…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

angular - strictTemplates true ignores type guards

I have got error Property 'pricePerItem' does not exist on type 'ShipProductDetail'. (the type of product is ProductDetail | ShipProductDetail) but I've used sort of Type Guards
user3887366
  • 2,226
  • 4
  • 28
  • 41
0
votes
3 answers

Angular Ivy strictTemplates Argument of type 'Event' is not assignable to parameter of type 'InputEvent'

I really don't understand what's the problem is with this code onQuantity(event: InputEvent, i: number) { if…
user3887366
  • 2,226
  • 4
  • 28
  • 41
0
votes
0 answers

Angular 9 IVY Lazy Load Component with AngularFireMessagingModule R3InjectorError(AppBrowserModule)[InjectionToken angularfire2.app.options

I have an Angular app which uses AngularFireMessagingModule for push notifications. With my current configuration I have this added in my AppBrowser module's imports array: AngularFireModule.initializeApp({ apiKey: "myAPIKey", projectId:…
Naveed Ahmed
  • 10,048
  • 12
  • 46
  • 85
0
votes
1 answer

Angular 9 first build takes long, it is inconvenient for CI, is there a way to speed it up?

Angular 9 has to compile some node_modules to make them work with Ivy. The compilation (by default) happens during the first build. That's ok on a developer machine because the first build happens only once. But that's inconvenient for CI. Because…
George Chernov
  • 268
  • 3
  • 7
0
votes
0 answers

Angular 9 ivy dist too large for prod build

Medium size project (some 30 lazy loaded modules) src folder (ts files, assets etc) before compilation takes 2mb. Dist folder with prod build is 18mb angular.json "prod": { "fileReplacements": [ { "replace":…
SeaBiscuit
  • 2,553
  • 4
  • 25
  • 40
0
votes
0 answers

Angular 9 : Error: Cannot instantiate cyclic dependency! InjectionToken HTTP_INTERCEPTORS

I am facing this issue when i am enableIvy in my Angular project and if enableIvy is off it is working fine, recently i have updated for Angular 7 to 9. CLI Version "@angular/cli": "^9.1.3", "@angular/compiler-cli": "^9.1.3" Error: Cannot…
Satnam Singh
  • 63
  • 1
  • 13
0
votes
2 answers

Angular Ivy ignoring entryComponents setting

I have a custom component decorator, used to link components to "names", in order to use a JSON object to link components into a hierarchy. @MyDecorator('name1') @Component({ selector: 'my-component', templateUrl:…
Alberto Chiesa
  • 7,022
  • 2
  • 26
  • 53
0
votes
1 answer

Using custom DomSanitizer with Ivy

I’m using ng-dompurify in an Angular 9 application and I’ve substituted the default Angular DomSanitizer with the NgDompurifyDomSanitizer implementation. @NgModule({ // ... providers: [ { provide: DomSanitizer, …
David Harris
  • 705
  • 1
  • 7
  • 16
0
votes
0 answers

'router-outlet' is not a known element in angular 9 when AOT and IVY enabled

Even though I have AppRoutingModule in app.module.ts, build is failing with error "'router-outlet' is an Angular component, then verify that it is part of this module." and I have observed a strange behaviour it is because of IVY and AOT enabeld ,…
0
votes
1 answer

Angular: library upgrate to Angular9 with ngcc build error for the demo-app

I'm maintaining an Angular library, which is generated by Angular Cli. Inside the workspace there is a library and a demo-app, which is a standard architecture for all of Angular libray created from angular-cli. Currently I'm upgrading my library…
Chris Bao
  • 2,418
  • 8
  • 35
  • 62
0
votes
2 answers

Angular 9 Ivy entryComponents conversion

@Component({ selector: 'dynamic', template: '', // entryComponents before Ivy entryComponents: [Component1, Component2, Component3] }) class…
Corydon
  • 33
  • 1
  • 7
0
votes
0 answers

How can i get a component using xlink:href host bindings to work in angular with ivy enabled

I was not able to make a successful plunkr for this so i'm trying to ask this anyways based on description. We have a NG component that uses a host binding to bind an icon property to an svg xlink:href. @Component({ selector: 'use', //…
Tim
  • 3,576
  • 6
  • 44
  • 58
0
votes
0 answers

How to lazy load angular core modules (FormsModule)

I'm trying to make my bundle size as small as possible. I have an application that all routes are lazy loaded. My AppModule looks like this: @NgModule({ declarations: [ AppComponent ], imports: [ routing, …
lucaswxp
  • 2,031
  • 5
  • 23
  • 34
0
votes
1 answer

How to bind parent component using child component's event property using `lazy loading` in Angular 9

I am converting some components to be lazily loaded using the ivy compiler in Angular 9. This is my code at the moment: and I am trying to…