question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enabling the experimental option experiments.buildHttp will cause HMR to not work.

See original GitHub issue

Bug 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:closed
  • Created a year ago
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
LP1994commented, Aug 14, 2022

@alexander-akait Thanks again for your prompt reply.

1reaction
alexander-akaitcommented, Aug 14, 2022

Just to initialize the dependencies needed in the project for those who don’t have the corresponding npm package installed.

Use npm i for this, not webpack init

Read more comments on GitHub >

github_iconTop Results From Across the Web

Experiments | webpack
experiments option was introduced in webpack 5 to empower users with the ability to activate and try out experimental features. warning. Because experimental...
Read more >
Invalid configuration object. Webpack has been initialised ...
Just change from "loaders" to "rules" in "webpack.config.js". Because loaders is used in Webpack 1, and rules in Webpack2. You can see there ......
Read more >
snowpack.config.js
When configured, Snowpack will treat any sibling packages in your workspace like source files, and pass them through your unbundled Snowpack build pipeline ......
Read more >
Getting Started · React Hot Loader - Dan gaearon
What follows is a 3-step guide for integrating React Hot Loader into your current project. Step 1 (of 3): Enabling Hot Module Replacement...
Read more >
Configuring Vite
Export keys ending with "/" is deprecated by Node and may not work well. ... Enabling this setting causes vite to determine file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found