question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngcc failed to run on @angular/material@9.2.1

See original GitHub issue

I just created a new Angular project with Ivy enabled using stackblitz and installed @angular/material@9.2.1. it is the only installed package (and it’s peer dependency @angular/cdk) .

but I got an error ngcc failed to run on @angular/material@9.2.1

https://stackblitz.com/edit/angularmaterial-262020

error:

Error in ~/src/main.ts
ngcc failed to run on @angular/material@9.2.1.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
davide1995commented, Jun 29, 2020

Set (“enableIvy”: false) under angularCompilerOptions in tsconfig.json to solve the issue

0reactions
angular-automatic-lock-bot[bot]commented, Sep 4, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling angular project with "An unhandled exception ...
I used ng add @angular/material and npm install @angular/flex-layout@latest --save and I got this error. Till now I tried: reinstall flexLayot ...
Read more >
error: failed to initialize angular compilation - ngcc failed.
Angular 9 - NGCC fails with an unhandled exception ... This error may be because two or more entry-points overlap and ngcc has...
Read more >
An unhandled exception occurred NGCC failed 2020 - YouTube
Dear Allafter Uninstall angular font-awesome from the package.json, kindly close the package.json opened file then restart the server ex: ng ...
Read more >
How To Fix Stackblitz Ngcc Error With Material Design ...
This likely means that the library (@angular/common/http) which declares HttpClientModule has not been processed correctly by ngcc, or is not compatible with ...
Read more >
Update to Angular 11 Version - Angular Wiki
Just run ng update it will suggest the necessary steps as shown below. Using package manager: 'npm' Collecting installed dependencies... Found ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found