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: 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:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JoostKcommented, Jan 15, 2020

@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.

1reaction
dave0688commented, Dec 27, 2019

+1

Read more comments on GitHub >

github_iconTop 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 >

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