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

425
Views
Disabling legacy View Engine compilation mode in Angular 12

Since Angular 10, we have had the following set in an angular library:

"angularCompilerOptions": {
  "enableIvy": false
}

I am now trying to use the Ivy compiler as we upgrade to Angular 12. From everything I've read, since Ivy is the default, either removing enableIvy or setting it to true should cause the build to use Ivy. However, with either of those changes, I still see:

Compiling with Angular in legacy View Engine compilation mode.

For comparison, I started a new library, and there I see:

Compiling with Angular sources in Ivy full compilation mode.

I can't figure out what else is different that is causing Angular to still use View Engine. What else should I be looking for?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Had the problem with Angular 12 and packagr and solved it in two steps:

  1. Enable ivy in the tsconfig.json:
"angularCompilerOptions": {
  "enableIvy": true,
  "compilationMode": "partial"
}

The compilationMode is relevant, when you want to publish your lib to any npm registry.

  1. Ensure, that the compiler sees and uses this tsconfig.json. It seems to me that the cli parameter for the config is madatory in Angular 12. I updated my scripts in package.json:
"packagr": "ng-packagr -p ./src/lib/package.json -c ./src/tsconfig.json"

The -c (or --config) part is missing in most examples.

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!