Skip to content

[Bug]: HMR does not work after making modifications when there is a compilation error. #4682

@HuGtoX

Description

@HuGtoX

Version

System:
    OS: Windows 11 22000.2538
    CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 11.52 GB / 15.9 GB
  Browsers:
    Edge: Chromium (133.0.3065.82)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @rsbuild/core: ^1.2.8 => 1.2.13
    @rsbuild/plugin-react: ^1.1.0 => 1.1.1

Details

Since version rsbuild/core@1.2.8, HRM does not work after making modifications when there is a compilation error.

Reproduce link

https://codesandbox.io/p/devbox/psmm3t

Reproduce Steps

  1. npm create rsbuild@latest
  2. npm i
  3. Modify the file to test the HMR (Work properly)
  4. Try to modify app.tsx into an incorrect format
  5. HMR is not working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions