This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Live reload no longer works after Angular 6 update #1654
Closed
Description
Live reloads no longer works after I updated a vanilla project to Angular 6 using instructions at https://update.angular.io/.
Do you know how to fix it?
To reproduce:
Using Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
dotnet new angular -o UpgradeTest
cd UpgradeTest\ClientApp
npm install -g @angular/cli
npm install @angular/cli
ng update @angular/cli
ng update @angular/core
Fix startup by editing package.json
to remove --extract-css
from ng serve
, resulting in:
"start": "ng serve",
cd ..
dotnet run
C:\dev\scrap\UpgradeTest>dotnet run
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using 'C:\Users\dstj\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
info: Microsoft.AspNetCore.SpaServices[0]
Starting @angular/cli on port 51362...
Hosting environment: Development
Content root path: C:\dev\scrap\UpgradeTest
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.SpaServices[0]
> UpgradeTest@0.0.0 start C:\dev\scrap\UpgradeTest\ClientApp
> ng serve "--port" "51362"
** Angular Live Development Server is listening on localhost:51362, open your browser on http://localhost:51362/ **
Open http://localhost:5000
and then modify any HTML, live reload will not trigger. It appears that recompilation occurs, but the HTML is not updated in the browser.
Note: opening the Angular Live Development Server at http://localhost:51362
will live reload, but the backend does not work. That's why I believe this is a dotnet setup issue.
Metadata
Metadata
Assignees
Labels
No labels