GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v2.3.1 throws uncaught "HMR is disabled" error in browser with webpack-dev-server · Issue #210 · webpack/tapable

v2.3.1 throws uncaught "HMR is disabled" error in browser with webpack-dev-server #210

New issue
Copy link
New issue
Copy link
Closed
#211
Closed
v2.3.1 throws uncaught "HMR is disabled" error in browser with webpack-dev-server#210
#211
Copy link

Description

@mao-sz
mao-sz
opened on Mar 23, 2026
Issue body actions

Have you used AI?

No

Bug Description

[email protected] throws uncaught HMR is disabled error in Webpack Dev Server unless devServer.hot is set to false in webpack.config.js.
This is new behaviour in v2.3.1 and not present in v2.3.0 or earlier, which does not require devServer.hot: false to be set (default is true).

Link to Minimal Reproduction and step to reproduce

Repo: https://github.com/mao-sz/tapable-hmr-bug

  1. Clone repo and cd into it

  2. Run npm i

  3. Run npm run dev to start WDS and navigate to the localhost URL

  4. Open browser console - observe uncaught error [HMR] Hot Module Replacement is disabled and no console log of foo

    Image
  5. Checkout to the downgrade-2.3.0 branch

  6. Delete node_modules/

  7. Re-run npm i - this should install everything the same other than [email protected]

  8. Re-run npm run dev to start WDS and navigate to the localhost URL

  9. Open browser console - observe foo is logged and no HMR error is thrown

Expected Behavior

devServer.hot can be omitted i.e. left as default true, and no uncaught HMR error thrown when launching WDS.

Actual Behavior

Uncaught HMR error thrown in browser console when launching WDS and no bundled src JS executed.
Error only resolved if devServer.hot set to false in webpack.config.js which should not be required.

Environment

System:
    OS: Linux 6.19 Fedora Linux 43 (KDE Plasma Desktop Edition)
    CPU: (16) x64 AMD Ryzen 7 5700X 8-Core Processor
    Memory: 24.97 GB / 31.26 GB
  Binaries:
    Node: 24.12.0 - /home/maoshizhong/.nvm/versions/node/v24.12.0/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 11.7.0 - /home/maoshizhong/.nvm/versions/node/v24.12.0/bin/npm
  Browsers:
    Chrome: 146.0.7680.153
    Firefox: 148.0.2
    Firefox Developer Edition: 148.0.2
  Packages:
    html-webpack-plugin: ^5.6.6 => 5.6.6 
    webpack: ^5.105.4 => 5.105.4 
    webpack-cli: ^7.0.2 => 7.0.2 
    webpack-dev-server: ^5.2.3 => 5.2.3

Is this a regression?

Yes (please specify version below)

Last Working Version

v2.3.0

Additional Context

No response

Reacted by Kaushik Gnanaskandan

Activity

  1. Narrator
    added a commit that references this issue on Mar 23, 2026

    fix(test-fixtures): pin [email protected] to work around HMR regression

    2d75ff4
  2. alexander-akait
    closed this as completedin #211on Mar 23, 2026
  3. Narrator
    added a commit that references this issue on Mar 23, 2026

    fix(test-fixtures): pin [email protected] to work around HMR regression

    cc4c543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.