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
0 answers

Angular migration from 8.1.13 to 9.1 .problem in custom library

i have some components which was working before while going through the migration i'am facing this so while doing the following command ng update @angular/core --migrate-only migration-v9-undecorated-classes-with-di This migration uses the Angular…
0
votes
1 answer

Angular 10 library without ivy

I built an Angular 10 library and used it via a direct import (file:dist/my-lib). Now I wanted to publish my lib to a private npm repository. To get that working, I changed my tsconfig.lib.json and disabled ivy: "angularCompilerOptions": { ..., …
0
votes
2 answers

Imports of Shared Module not working in Shared components after upgrading Angular 9

I have upgraded my project to below versions Node from 11 -> 12 Angular from 8 -> 9 App started throwing compile time errors. Application has lot of shared components which are declared under declarations array and export array of SharedModule We…
Syed Abbas
  • 49
  • 1
  • 8
0
votes
1 answer

Angular 11 Feature Module cyclic dependency

I know this question has been asked many times however I have not found any solution to the problem short of removing modules and just loading everything in advance. After starting a very complex Angular app over a year ago, I decided early on to go…
psmocko
  • 15
  • 1
  • 3
0
votes
1 answer

Angular ivy i18n extraction "Missing declaration for lazy-load helper function"

I'm trying to extract i18n messages from a complex angular using the following cli command: ng extract-i18n --out-file="src/locale/messages.xlf" --format=xlf The procedure compile correctly the application but, in the extraction phase, returns a…
Luca
  • 13
  • 2
0
votes
0 answers

Angular 9 Ivy disabled but get ERROR in document is not defined

I migrated an Angular 8 library project to Angular 9. In my root tsconfig.json enableIvy is false. The library builds find and the unit tests pass. When I start an app (also within the same library project) via "ng serve" I get the error "ERROR…
Scott Walter
  • 9,426
  • 4
  • 18
  • 23
0
votes
1 answer

@grapecity/wijmo throwing run time error after upgrading my Angular project from 8 to 9

Recently iam trying to update my angular project from 8 to 9. While updating i also updated wijmo from wijmo/wijmo to @grapecity/wijmo package as it supports IVY. But after the completing the upgradation, i can able to compile the application but i…
Venkatesh K
  • 721
  • 1
  • 8
  • 9
0
votes
1 answer

Angular 10.1 Ivy doesn't understand *ngFor directive

Since my upgrading from Angular 10 to 10.1, my ivy compiler have started to misread ngFor directives. e.g. mat-grid-tile( *ngFor='let preview of previewList; trackBy: trackByFn' ) img.previews__img( #previewImage, ) …
Nemus
  • 1,322
  • 2
  • 23
  • 47
0
votes
1 answer

how to generate Ivy enabled umd bundles

We have an Angular CLI application and we use CDN scripts bundles. We we copy these bundles from the bundles folder within the npm package (e.g. node_modules/@angular/core/bundles/core.umd.js). We would like to use Ivy. How can we Ivy-enable those…
stephan.peters
  • 963
  • 13
  • 35
0
votes
1 answer

Extend MatOption to create select/deselect all component

I need to create a shared component to select/deselect all elements of a mat-select because I have an app that use it a lot of times and implement the same piece of work frequently is not an option. I've been reading many options, like this…
Aw3same
  • 930
  • 4
  • 13
  • 38
0
votes
1 answer

Why is my directive not working anymore when I turn on Angular Ivy?

I have a directive that seems to have broken when I upgraded to Angular 9 and build with Ivy turned on. I made a simplified version of the directive to illustrate what the problem is: import { Directive, Input, forwardRef, OnInit } from…
Scottie
  • 11,050
  • 19
  • 68
  • 109
0
votes
0 answers

Angular development environment not working as expected after upgrade to Angular 9 and 10

I work on a pretty large angular project. We have been on angular 8 for the most part of 2020, and postponed upgrading to angular 9 and 10 because last time we tried upgrading, the application did not feel right. Therefore, we made the decision to…
0
votes
1 answer

Can't compile the Angular application with Ivy enabled

I cloned my angular application from remote and installed the dependencies. Then I tried to build an application locally using ng serve command which threw me this error as attached in the Error Image. Error Image I was able to bypass this by…
shashank
  • 327
  • 1
  • 4
  • 17
0
votes
1 answer

Angular/material crash after update to 9.2.4

Today I've updated Angular/material to 9.2.4 from 9.2.0-next, and after ng serve I've got this: platform.js:78 Uncaught TypeError: Class constructor Platform cannot be invoked without 'new' at…
Nemus
  • 1,322
  • 2
  • 23
  • 47
0
votes
0 answers

Is it possible to include a module at runtime in an running Angular solution?

I have a general Angular solution and I want to make it expandable for each user that has this general solution "installed". This means that it will have a screen where you can upload a module (some Angular code), and then this module/code will be…
PNR
  • 555
  • 3
  • 12
  • 26