aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

Can't update Angular application

Open bushev opened this issue 7 years ago • 1 comments

Hi @MarkPieszak ,

What I do:

  1. git clone https://github.com/MarkPieszak/aspnetcore-angular2-universal.git
  2. cd aspnetcore-angular2-universal
  3. export ASPNETCORE_ENVIRONMENT=Development
  4. dotnet run

As a result, the application works well on 5000 port, HMR works as well.

  1. Ctrl + C
  2. echo "<strong>Some new TAG</strong>" >> ClientApp/app/app.component.html
  3. dotnet run
  4. Refresh a web page

Result:

  1. I can't see my new tag on a page
  2. I see GET http://localhost:5000/dist/87fc38c11d6a03317b37.hot-update.json 404 (Not Found) in a Chrome console
  3. HMR stops working

It looks like a caching problem, clearing cache on browser helps me.

My environment:

OS: MacOS High Sierra
dotnet: 2.1.103

bushev avatar Apr 05 '18 11:04 bushev

What version of Node do you have installed ?

MarkPieszak avatar Apr 10 '18 00:04 MarkPieszak