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.

Disable ngcc background compilation

See original GitHub issue

Is your feature request related to a problem? Please describe. One of my project is at angular 8, and every time i start my vscode language service started ngcc and compile all dependencies I would like to disable this feature. For now i should uninstall language service : /

Describe the solution you’d like add configuration enableBackgroundIvyCompilation flag

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kdaniel21commented, Apr 7, 2021

I’m having the same problem and right after starting VSCode (and Angular Language Features start to run) my Angular 8 project immediately breaks with the following error message. (I’m adding it so that others might be able to find this issue easier). Uncaught TypeError: can't access property "id", ngModuleType.ngModuleDef is undefined

Would something like rollbacking to a previous version of the extension help?

EDIT: Rollbacking the extension to v0.1100.4 did the trick for me.

1reaction
kyliaucommented, Apr 20, 2021

@Agoni1 We’ve determined that the new Ivy language service cannot support Angular version 8 and below. This is because the ngcc support is incomplete in version 8. Since version 8 is no longer under LTS support, we will fix the extension to automatically fallback to View Engine language service when version 8 is detected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular: Running ngcc causing performance issues in VSCode
If you want to disable fullTemplateTypeCheck: In your tsconfig.json file set "fullTemplateTypeCheck" to false and restart VS Code.
Read more >
Angular Ivy - W3cubDocs
CLI commands run ngcc as needed when performing an Angular build. ... Before disabling Ivy, check out the debugging recommendations in the Ivy...
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 >
Angular Language Service
The Angular Language Service provides code editors with a way to get completions, errors, hints, and navigation inside Angular templates.
Read more >
error: failed to initialize angular compilation - ngcc failed.
Gradient Background. error: failed to initialize angular compilation - ngcc failed. ... BlockI don't want to see this, for any search. Feedback.
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