HMR duplicating the app root when changing html or scss, working normal when changing ts ONLY #1019

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

Originally created by @btmadison on 2/14/2017

if I change and save a typescript file, HMR works normally. Whenever I modify html or scss though, it keeps adding a new app root to the dom above the previous app root. Additionally the newly added app that is added does not have the properties defined in the app in the original index.cshtml. To explain more clearly, if i change html I can end up with the following:

<body> <app ng-version="2.4.5">...</app> <app prop-from-index="some-val" injected-token="somehash" ng-version="2.4.5">...</app>

when instead I would expect to always only see:

<body> <app prop-from-index="some-val" injected-token="somehash" ng-version="2.4.5">...</app>

which is the case if i change typescript only while HMR is active.

thanks...

*Originally created by @btmadison on 2/14/2017* if I change and save a typescript file, HMR works normally. Whenever I modify html or scss though, it keeps adding a new app root to the dom above the previous app root. Additionally the newly added app that is added does not have the properties defined in the app in the original index.cshtml. To explain more clearly, if i change html I can end up with the following: `<body> <app ng-version="2.4.5">...</app> <app prop-from-index="some-val" injected-token="somehash" ng-version="2.4.5">...</app> ` when instead I would expect to always only see: `<body> <app prop-from-index="some-val" injected-token="somehash" ng-version="2.4.5">...</app> ` which is the case if i change typescript only while HMR is active. thanks...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1019
No description provided.