Creating custom example - learning #344

Closed
opened 2025-08-09 17:15:55 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @alan994 on 10/26/2017

Hi,

I'm pretty new to webpack and all this modern web things, but I wont to figure it out :)
I'm trying to reproduce ASP.NET core + angular application. I'm doing it by template generated from Visual studio 2017. In this Git repo I posted example app with a problem. All of features that I wont for now works, except automatic refresh (HMR) of page content after doing some changes in code.

How to reproduce.

  • Run application (e.g. dotnet run)
  • Open F12 chrome tools
  • See message in console [HMR] connected
  • Go to file app/components/app/app.component.html and change some text
  • Save file
  • Look at dotnet console output. Webpack is compiling...
  • Look at chrome console

And that is excepted as in project structure there is no e414f0271c46a2ab8bc9.hot-update.json file.

Question is what I'm doing wrong and how to set up HMR to work in my example?

*Originally created by @alan994 on 10/26/2017* Hi, I'm pretty new to webpack and all this modern web things, but I wont to figure it out :) I'm trying to reproduce ASP.NET core + angular application. I'm doing it by template generated from Visual studio 2017. In this [Git repo](https://github.com/alan994/asp.net-core_angular) I posted example app with a problem. All of features that I wont for now works, except automatic refresh (HMR) of page content after doing some changes in code. How to reproduce. - Run application (e.g. dotnet run) - Open F12 chrome tools - See message in console [HMR] connected - Go to file app/components/app/app.component.html and change some text - Save file - Look at dotnet console output. Webpack is compiling... - Look at chrome console - [HMR] bundle rebuilding - [HMR] bundle rebuilt in 209ms - [HMR] Checking for updates on the server... - **GET http://localhost:4347/e414f0271c46a2ab8bc9.hot-update.json 404 (Not Found)** And that is excepted as in project structure there is no e414f0271c46a2ab8bc9.hot-update.json file. **Question is what I'm doing wrong and how to set up HMR to work in my example?**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#344
No description provided.