No documentation on running ngc (@angular/compiler-cli)
See original GitHub issue📚 Docs or angular.io bug report
There is zero documentation on how to run the Angular CLI compiler.
- Nothing on https://angular.io, including https://angular.io/guide/aot-compiler
- No help from the executable itself;
ngc -h
andngc --help
hang forever. - No README in @angular/compiler-cli package
- No README at package homepage https://github.com/angular/angular/tree/master/packages/compiler-cli
Issue Analytics
- State:
- Created 4 years ago
- Reactions:30
- Comments:17 (11 by maintainers)
Top Results From Across the Web
Running ngcc in postinstall. Angular CLI should not ... - GitHub
If you run ngcc yourself beforehand then the angular cli wont run it as part of it's build step. ... Another process, with...
Read more >Angular: Running ngcc causing performance issues in VSCode
In your tsconfig.json file set "fullTemplateTypeCheck" to false and restart VS Code. fullTemplateTypeCheck is in the angularCompilerOptions ...
Read more >Angular Ivy
AOT compilation with Ivy is faster and should be used by default. In the angular.json ... CLI commands run ngcc as needed when...
Read more >error: failed to initialize angular compilation - ngcc failed.
Try to find node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file file and delete it. Or Just delete your node_modules folder and do npm install.
Read more >Angular compiler options
js output of ngc does not include any lazy-loaded template or style URLs. For library projects created with the Angular CLI, the development...
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
For anyone interested the “documentation” of
angularCompilerOptions
is here: https://github.com/angular/angular/blob/e8ae3c5f2efe01acee894f3ea094544689310066/packages/compiler-cli/src/transformers/api.ts#L40It’s a really rough start.
Okay. Guess I need tsconfig.json?
Are these bugs? Are these expected?
I have no idea. There isn’t even a hello world example of how to use ngc.