storybook: Storybook server does not start if error in initial build, even after fixing

Describe the bug The Storybook server running on localhost:6006 does not start if you startup storybook with initial errors in your JS. Even after fixing, the server never manages to start so you have to kill and restart Storybook.

To Reproduce Steps to reproduce the behavior:

  1. Start storybook with some JS error in your Story source/imported JS
  2. Storybook fails to start (expected)
  3. Fix error
  4. Storybook build starts but server never starts up (eg localhost:6006 is not running)
  5. Have to kill and restart storybook for it to work

Expected behavior Server to start after initial error is fixed.

Screenshots n/a

Code snippets n/a

System:

Environment Info:

  System:
    OS: macOS 10.15.3
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 13.8.0 - ~/.nvm/versions/node/v13.8.0/bin/node
    npm: 6.13.6 - ~/.nvm/versions/node/v13.8.0/bin/npm
  Browsers:
    Chrome: 80.0.3987.106
    Firefox: 64.0
    Safari: 13.0.5
  npmPackages:
    @storybook/addon-actions: 5.3.12 => 5.3.12
    @storybook/addon-info: 5.3.12 => 5.3.12
    @storybook/addon-knobs: 5.3.12 => 5.3.12
    @storybook/addon-links: 5.3.12 => 5.3.12
    @storybook/addons: 5.3.12 => 5.3.12
    @storybook/preset-typescript: 1.2.0 => 1.2.0
    @storybook/react: 5.3.12 => 5.3.12

Additional context Should be repeatable with a brand new build of Storybook. I’m using React but I assume it is a general problem? Not using CRA

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Hi everyone! Seems like there hasn’t been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don’t have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Bumppppppppp

Damn you stale bot

ughh this issue is affecting me too, i’ll spend some time looking into it later if no one else is going to 😆

Don’t forget little ole me!

Anyone…?