Disable ngcc background compilation
See original GitHub issueIs 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:
- Created 2 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top 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 >
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
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.@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.