Skip to content

[Bug] HMR for manager code doesn't work, so addon-kit's watch mode doesn't do as much as expected #49

@morewings

Description

@morewings

Describe the bug

Watch mode (aka live reload) is broken for me. My setup: macOS 12.6.3, Node v16.14.0. When I change the code, Storybook in browser doesn't show the change.

Maintainers' notes: the issue is not with build:watch in the addon-kit but with the lack of HMR for manager code in Storybook itself.

Steps to reproduce the behavior

  1. Clone this repo on macOS 12.6.3, Node v16.14.0.
  2. Run yarn install
  3. Run yarn start
  4. Change any displayable value in src/Tool.tsx
  5. Save file
  6. Elevator music playing
  7. Nothing is changed in browser.

Expected behavior

Changes in the code are reflected in running Storybook instance without reloading Storybook manually.

Environment

  • OS: macOS 12.6.3
  • Node.js version: v16.14.0
  • NPM version: 9.2.0
  • Browser (if applicable): chrome, safari, firefox
  • Browser version (if applicable): n/a
  • Device (if applicable): MacBook Pro 2015

Additional context

No other context. Thanks for your work, colleagues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Empathy Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions