-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High cpu usage with ngc in watch mode #23570
Comments
moved to angular/angular-cli#10504 |
@IgorMinar this looks like a ngc issue (running ngc directly according to the screenshot), not angular CLI. What was the rationale for moving it there? I’ll keep both issue opened for now. |
Ok I found that when I've got linked my external npm project called "tnp" inside node_modules folder there is a problem with high cpu usage in ngc watch mode... After removing link: node_modules/tnp problem doesn't exist... My tnp project structure
Folder projects inlcudes my project with ngc watch problem... but it is ignored anyway in tsconfig.json of this tnp project.
I am not sure why... but ngc does to much operations on this tnp project folder... and thats why constant high cpu |
Without a reproduction it's hard to know whether this issue still exists in today's versions of Angular. In general though, the View Engine compiler has never supported The good news is that in Angular v9+ with Ivy, symlinks/ |
I can't see this issue anymore... Anyway.. I notice that I had circular dependency in imports in 2 files..
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
I am having issue with very high cpu usage in ngc with watch mode... (~140%-190%). I am using @angular/cli in version 1.7.4 but also there is a problem on 1.6.8
tsconfig-aot.dist.json:
tsconfig.json
Project structure
├── .angular-cli.json
├── .editorconfig
├── .gitignore
├── .npmignore
├── .npmrc
├── .vscode
├── components
├── dist
├── e2e
├── gulpfile.js
├── index.d.ts
├── index.js
├── index.js.map
├── karma.conf.js
├── ng-package.json
├── package.json
├── protractor.conf.js
├── README.md
├── src
├── tmp
├── tsconfig-aot.bundle.json
├── tsconfig-aot.dist.json
├── tsconfig.json
└── tslint.json
directory: 12 file: 38 symboliclink: 1
Environment
For Tooling issues:
The text was updated successfully, but these errors were encountered: