Hot Replace not working #168

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

Originally created by @jerv89 on 2/16/2018

I'm trying to create a new app with the new spa-templates from Microsoft, but HMR (Hot Module Replacement) is not working, im on linux. I tried this.

. Install the SPA templates:

dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0-rc2-final

. Created a new application using command line

dotnet new angular -o MyApp

Ran command (working on linux):

export SET ASPNETCORE_Environment=Development 

.In the ClientApp folder:

npm install

.Back in the main folder:

dotnet run

I was able to see the app running without any problems at http://localhost:5000, but when I modify any .ts file or .html in the angular app folder no changes are reflected or sent to the browser. How I configure HMR in this new angular/cli based template.

I also tried something like this: https://github.com/angular/angular-cli/wiki/stories-configure-hmr

Or this. https://medium.com/@beeman/tutorial-enable-hmr-in-angular-cli-apps-1b0d13b80130

I hope you can help me.

PD.: With VSCode happens the same, serveral browsers tested, my angular/cli, npm, nodejs, .netcore are up to date

*Originally created by @jerv89 on 2/16/2018* I'm trying to create a new app with the new spa-templates from Microsoft, but HMR (Hot Module Replacement) is not working, im on linux. I tried this. . Install the SPA templates: dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0-rc2-final . Created a new application using command line dotnet new angular -o MyApp Ran command (working on linux): export SET ASPNETCORE_Environment=Development .In the ClientApp folder: npm install .Back in the main folder: dotnet run I was able to see the app running without any problems at http://localhost:5000, but when I modify any .ts file or .html in the angular app folder no changes are reflected or sent to the browser. How I configure HMR in this new angular/cli based template. I also tried something like this: https://github.com/angular/angular-cli/wiki/stories-configure-hmr Or this. https://medium.com/@beeman/tutorial-enable-hmr-in-angular-cli-apps-1b0d13b80130 I hope you can help me. PD.: With VSCode happens the same, serveral browsers tested, my angular/cli, npm, nodejs, .netcore are up to date
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#168
No description provided.