Angular CLI freezes computer occasionaly on ng serve

1.2k views Asked by At

I am having a problem with ng serve. When I run it on my angular project, about 10% of time, it will freeze during the process and also whole computer freezes. Sometimes it unfreeze after some time (from 20 seconds to 120 seconds) and successfully compiles, sometimes I need to manually power off the computer. I have encountered this problem on 2 computers already.

One thing I noticed is when the computer is frozen, the LED indicator of HDD usage on my case keeps shining. Do you have any idea, what could be the cause of this freeze? Could it be some error/bug in my project? I call ng serve from my WebStorm IDE, which is already very RAM consuming, so could it be a result of not enough RAM memory? I've tried to log outputs of ng serve to file in case of freeze, but it shows no errors.

OS: Ubuntu 20.04.1 LTS || Linux Mint 20
Angular CLI: 10.0.3
Node: 14.14.0
OS: linux x64

Angular: 10.1.6
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

@angular-devkit/architect         0.1000.8
@angular-devkit/build-angular     0.1000.8
@angular-devkit/build-optimizer   0.1000.8
@angular-devkit/build-webpack     0.1000.8
@angular-devkit/core              10.0.3
@angular-devkit/schematics        10.0.3
@angular/cli                      10.0.3
@ngtools/webpack                  10.0.8
@schematics/angular               10.0.3
@schematics/update                0.1000.3
rxjs                              6.6.3
typescript                        3.9.7
webpack                           4.43.0
0

There are 0 answers