ngcc: packages that fail with errors causes a crash
See original GitHub issue🐞 bug report
Affected Package
The issue is caused by package @angular/compiler-cli
Is this a regression?
Yes, the previous version in which this bug was not present was: 9.0.0-rc.6
Description
When ngcc processes a package that fails to compile, a fatal error that crashes the compiler occurs.
🔬 Minimal Reproduction
For example angular-tree-component fails to compile:
https://app.circleci.com/jobs/github/angular/ngcc-validation/2459/parallel-runs/1?filterBy=ALL
🔥 Exception or Error
ERROR in Cannot read property 'injectorImports' of undefined
🌍 Your Environment
Angular Version:
Angular: 9.0.0-rc.7
Anything else relevant? n/a
Issue Analytics
- State:
- Created 4 years ago
- Reactions:19
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Angular 9 - NGCC fails with an unhandled exception
This error may be because two or more entry-points overlap and ngcc has been asked to process some files more than once. You...
Read more >Problem with NGCC - David Votrubec
NGCC stands for Angular Compatibility Compiler, which recompiles various npm packages to Ivy format. Most of the time it “just works”, ...
Read more >error: failed to initialize angular compilation - ngcc failed.
My NGCC error occured after I ran the command npm i --save-dev @types/node, which updated some packages in my development environment but also...
Read more >We really love Angular...10x as much this time
Error : NGCC failed. at NgccProcessor.process (project_folder/node_modules/@ngtools/webpack/src/ngcc_processor.js:69:19) at project_folder/ ...
Read more >Guide Leading Up to Angular 9.0.0 Release - HUSPI
ngcc : avoid error due to circular dependency in EsmDependencyHost ... correctly handle inline exports in UMD; don't crash if symbol has no ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@vokeit-gschuster The bug itself has not been fixed, the fix PR is still pending. However, it may be that a bug which was causing the library to fail compiling has been fixed, in which case you won’t observe the bug anymore.
+1