Error when using HMR with ASP.NET CORE 2.0 #494

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

Originally created by @praneethw on 8/18/2017

I have upgraded my solution to ASP.NET CORE 2.0, from 1.0 which was already configured for HMR. However after the upgrade I get the following error,

hrm_error

I can ofcource get rid of the error by setting HotModuleReplacement to false, however is there a fix to this such that I can continue to use SPA services with HMR?

The code for enabling HMR in my app is listed below,

app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions() { HotModuleReplacement = true });

*Originally created by @praneethw on 8/18/2017* I have upgraded my solution to ASP.NET CORE 2.0, from 1.0 which was already configured for HMR. However after the upgrade I get the following error, ![hrm_error](https://user-images.githubusercontent.com/13520386/29456265-89a1f08a-8432-11e7-9e2c-8f3716cb40a2.jpg) I can ofcource get rid of the error by setting HotModuleReplacement to false, however is there a fix to this such that I can continue to use SPA services with HMR? The code for enabling HMR in my app is listed below, `app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions() { HotModuleReplacement = true });`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#494
No description provided.