Enabling the experimental option experiments.buildHttp will cause HMR to not work.
See original GitHub issueBug report
What is the current behavior? Enabling the experimental option experiments.buildHttp will cause HMR to not work.
If the current behavior is a bug, please provide the steps to reproduce. 1、I’ve provided a small library of examples to reproduce the problem: https://github.com/LP1994/experiments_buildHttp_hmr.git 2、After downloading the project, go to the project root directory and execute the commands in the following order: 1)npm --force install 2)npm run dev
What is the expected behavior? Enable experimental option experiments.buildHttp. HMR also works fine.
Other relevant information:
webpack version:
webpack 5.74.0
Node.js version: node 18.6.0
Operating System: Windows 11 Professional Edition 21H2 22000.832
Additional tools: npm 8.15.1
My demo library: https://github.com/LP1994/experiments_buildHttp_hmr.git
Issue Analytics
- State:
- Created a year ago
- Comments:24 (9 by maintainers)

Top Related StackOverflow Question
@alexander-akait Thanks again for your prompt reply.
Use
npm ifor this, notwebpack init