QuickApp icon indicating copy to clipboard operation
QuickApp copied to clipboard

[QuickApp Total Pack][ASP.NET 3.0] Microsoft.AspNetCore.SpaServices Error/Fail

Open d3wF1nk opened this issue 5 years ago • 7 comments

1 dotnet restore in root directory 2 npm install in ClientApp directory 3 File -> Open -> Project/Solution with Visual Studio 2019 4 Run it with IIS Express

In logs appear this error:

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 0% compiling

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 0/0 modules 0 active 

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 0/1 modules 1 active multi C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\src\main.ts

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 1/1 modules 0 active 

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 1/1 modules 0 active 

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 1/2 modules 1 active multi C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\src\polyfills.ts C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models\jit-polyfills.js

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 2/2 modules 0 active 
<s> [webpack.Progress] 10% building 2/2 modules 0 active 
<s> [webpack.Progress] 10% building 2/3 modules 1 active multi C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\src\styles.scss
<s> [webpack.Progress] 10% building 3/3 modules 0 active 
<s> [webpack.Progress] 10% building 3/4 modules 1 active C:\Users\Utente\workALC\ExperimentalProjects\QuickApp.Pro\QuickApp\ClientApp\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 10% building 4/4 modules 0 active 

And it continue until 100% building ...

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 94% after asset optimization
<s> [webpack.Progress] 94% after seal
<s> [webpack.Progress] 94% after seal SuppressExtractedTextChunks
<s> [webpack.Progress] 95% emitting
<s> [webpack.Progress] 95% emitting CopyPlugin
<s> [webpack.Progress] 95% emitting index-html-webpack-plugin

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 98% after emitting

Microsoft.AspNetCore.SpaServices: Error: <s> [webpack.Progress] 98% after emitting CopyPlugin

The application seems to works fine. Same issue with the Pro version also.

d3wF1nk avatar Oct 17 '19 13:10 d3wF1nk

npm --version
6.9.0
ng --version
Angular CLI: 8.3.9
Node: 12.6.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.803.9
@angular-devkit/core         8.3.9
@angular-devkit/schematics   8.3.9
@schematics/angular          8.3.9
@schematics/update           0.803.9
rxjs                         6.4.0
dotnet --info
.NET Core SDK:
 Version:   3.0.100
 Commit:    04339c3a26

Ambiente di runtime:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  2.1.509 [C:\Program Files\dotnet\sdk]
  3.0.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

d3wF1nk avatar Oct 17 '19 14:10 d3wF1nk

If i run it switching from IIS to QuickApp same issue but little different synthax:

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 0% compiling

d3wF1nk avatar Oct 17 '19 14:10 d3wF1nk

I have the same problem.posted also here

mrjohnr avatar Jan 14 '20 15:01 mrjohnr

  1. open this path (QuickApp/QuickApp/ClientApp/) in cmd or terminal
  2. write this command (ng serve -o) if it work that means no problems with angular packages .

myalsailamy avatar Jan 14 '20 17:01 myalsailamy

Same problem

JernejHabjan avatar Jan 23 '20 12:01 JernejHabjan

Update - I think this is normal behavior, as it is reported also by generic angular project, generated with dotnet CLI dotnet new angular -o my-new-app In angular.json file, property progress exists, which is turned to false in my-new-app. image After turning it to true, it starts showing errors in console: image

So I think this is normal behavior. If it bothers you, you can set it to false, and errors wont be shown. Can anyone confirm if this is correct?

JernejHabjan avatar Jan 24 '20 08:01 JernejHabjan

I had the same problem, when running dotnet run I got lots of errors like the followings:

fail: Microsoft.AspNetCore.SpaServices[0]
      Compiling @angular/core : module as esm5
...
fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 10% building 1/1 modules 0 active

Despite the errors everything worked fine when running the web app.

ng serve did not show any error.

The errors disappeared after removing "progress": true, from angular.json like suggested by @JernejHabjan.

I don't think this behavior is "normal": the word FAIL seems to indicates something is wrong on the .NET Core side.

$ npm --version
6.14.4
$ node --version
v14.2.0
dotnet --info
Version:   3.1.202

lackovic avatar May 16 '20 19:05 lackovic