HMR Stops Working After IIS Setting for Angular2 Router in web.config #833

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

Originally created by @MapleYe on 4/13/2017

Currently working on an Angular2 project on ASP,NET Core. HMR works fine before I set up IIS settings in Visual Studio 2017 for the Angular 2 router. But it stops responding to any changes in the front code/markup after I add web.config for the IIS settings
temp_2

HMR fails starting and Chrome pops up the error in the console:
"EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection."

*Originally created by @MapleYe on 4/13/2017* Currently working on an Angular2 project on ASP,NET Core. HMR works fine before I set up IIS settings in Visual Studio 2017 for the Angular 2 router. But it stops responding to any changes in the front code/markup after I add web.config for the IIS settings ![temp_2](https://cloud.githubusercontent.com/assets/18238023/25024611/d159de78-205b-11e7-912f-234e8cfafc13.jpg) HMR fails starting and Chrome pops up the error in the console: "EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection."
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#833
No description provided.