TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

前端 未结 11 1935
天命终不由人
天命终不由人 2020-12-09 15:25

I\'m getting this error after upgrading to angular 9. I\'m using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version

11条回答
  •  囚心锁ツ
    2020-12-09 16:13

    to resolve the strict mode error remove this line from main.ts

    export { renderModule, renderModuleFactory } from '@angular/platform-server';
    

    This doesn't resolve the timeout issue however. I am also getting this error after upgrading to Angular 9 and using .NET core.

    Running the angular app using "ng serve" and then changing your startup spa script to use UseProxyToSpaDevelopmentServer works as a work-around

提交回复
热议问题