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.

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:30
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
piotrtomiakcommented, Jul 18, 2019
4reactions
pauldrapercommented, May 23, 2019

ngc is basically tsc therefore this documentation should be valid mostly.

It’s a really rough start.

node_modules/.bin/ngc --help
error TS5058: The specified path does not exist: 'tsconfig.json'.
node_modules/.bin/ngc --version
error TS5058: The specified path does not exist: 'tsconfig.json'.
node_modules/.bin/ngc hello.ts
error TS5058: The specified path does not exist: 'tsconfig.json'.

Okay. Guess I need tsconfig.json?

node_modules/.bin/ngc --init
error TS5058: The specified path does not exist: '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.

Read more comments on GitHub >

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

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