Asp.net core 2.1 +Angular 6 application. In my Start.cs file. we have
app.UseSpa(spa =>
{
// To learn more about options for serving an Angular SPA from ASP.NET Core,
// see https://go.microsoft.com/fwlink/?linkid=864501
spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
}
});
In the morning, I run the asp.net core application from Visual Studio(click F5). I got webpack build stuck on build module. It build a scss file for a long time and hangs there. So the web page throws asp.net core middleware exception.
However in the afternoon, I got a different error. Which is Fail: Microsoft.AspNetCore.SpaServices[0].
However if I run npm start in command window, then run dotnet run in Visual Studio code. It is fine.
Tell me what to do?

