__webpack_hmr 404 #323

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

Originally created by @DanubeRS on 11/9/2017

After scratching my head when adding UseWebpackDevMiddleware to an existing project, I have cloned, and run dotnet run (2.0.2) on seperate machines (OSX and Win10) to which both have responded with;

GET http://localhost:5000/__webpack_hmr 404 (Not Found)

in chrome, and;

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.1069ms 404

in the Katana output.

Installed packages;

•100% ➜ npm ls --depth 0
Webpack@0.0.0 /Users/daniel/Documents/GIT/JavaScriptServices/samples/misc/Webpack
├── aspnet-prerendering@1.0.7
├── aspnet-webpack@1.0.29
├── css-loader@0.23.1
├── extendify@1.0.0
├── extract-text-webpack-plugin@1.0.1
├── less@2.7.3
├── less-loader@2.2.3
├── style-loader@0.13.2
├── ts-loader@0.8.2
├── typescript@2.6.1
├── webpack@1.15.0
└── webpack-hot-middleware@2.20.0

Unsure what could be causing this, or whether it might involve webpack-dev-middleware? Feel free to quiz me on any other setup.

*Originally created by @DanubeRS on 11/9/2017* After scratching my head when adding `UseWebpackDevMiddleware` to an existing project, I have cloned, and run `dotnet run` _(2.0.2)_ on seperate machines (OSX and Win10) to which both have responded with; ``` GET http://localhost:5000/__webpack_hmr 404 (Not Found) ``` in chrome, and; ``` info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 GET http://localhost:5000/__webpack_hmr info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 0.1069ms 404 ``` in the Katana output. Installed packages; ``` •100% ➜ npm ls --depth 0 Webpack@0.0.0 /Users/daniel/Documents/GIT/JavaScriptServices/samples/misc/Webpack ├── aspnet-prerendering@1.0.7 ├── aspnet-webpack@1.0.29 ├── css-loader@0.23.1 ├── extendify@1.0.0 ├── extract-text-webpack-plugin@1.0.1 ├── less@2.7.3 ├── less-loader@2.2.3 ├── style-loader@0.13.2 ├── ts-loader@0.8.2 ├── typescript@2.6.1 ├── webpack@1.15.0 └── webpack-hot-middleware@2.20.0 ``` Unsure what could be causing this, or whether it might involve `webpack-dev-middleware`? Feel free to quiz me on any other setup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#323
No description provided.