Skip to content

[Bug]: react-cosmos-plugin-rspack no longer refreshing on Windows since 1.5.8 #11891

@birtles

Description

@birtles

System Info

  System:
    OS: Windows 11 10.0.26100
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
    Memory: 13.11 GB / 31.73 GB
  Binaries:
    Node: 22.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Users\Brian\.yarn\bin\yarn.CMD
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.17.1 - C:\Users\Brian\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Chrome: 141.0.7390.55
    Edge: Chromium (140.0.3485.54)
    Firefox: 142.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
    Firefox Developer Edition: 143.0 - C:\Program Files\Firefox Developer Edition\firefox.exe
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @rspack/cli: 1.5.8 => 1.5.8
    @rspack/core: 1.5.8 => 1.5.8

Details

Originally posted in #11878

See STR below:

Expected results: The page refreshes and an exclamation mark "!" appears after the button label.

Actual results: The page does not refresh. If I stop and start cosmos, however, the content is refreshed.

rspack 1.5.7 produces the expected results as does 1.5.8 when running on Linux.

Repro screencast:

rspack-repro.mp4

Reproduce link

https://github.com/birtles/rspack-react-cosmos-repro

Reproduce Steps

  1. On Windows, clone https://github.com/birtles/rspack-react-cosmos-repro
  2. Run pnpm install
  3. Run pnpm start
  4. Open http://localhost:5000/
  5. Open the Button fixture from the panel on the left-hand side
  6. Open the src/Button.tsx file from the cloned repository
  7. Add an exclamation mark "!" after the label (i.e. <button>{label}</button><button>{label}!</button>)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions