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

Created on 17 Feb 2020  路  17Comments  路  Source: storybookjs/storybook

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

P1 bug core

Most helpful comment

Bumppppppppp

All 17 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

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!

Anyone...?

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!

Don't forget little ole me!

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!

Damn you stale bot

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!

Bump

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

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!

Bump!

This is an almost daily issue for me - even the smallest error during the initial build means I need to completely restart the server, which is growing increasingly time-consuming as our number of stories continues to grow

This is really very annoying. Is there any workaround for this?

To everyone who is upvoting comments like "bummmp", if you want this fixed, please upvote by adding a 馃憤 to the issue description. We use the issue upvotes as a signal to help prioritize!

Verified. I can reproduce with @storybook/[email protected].

It appears already resolved in @storybook/[email protected], because I cannot reproduce there. For 6.1.0 I changed how the manager and preview get compiled as well as when the server starts (it's basically the first thing that happens now, long before compiling).

@danawoodman could you test with the latest (beta) of 6.1.0, currently v6.1.0-beta.4?

Fixed in 6.1-rc, can you verify @danawoodman? Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexanbj picture alexanbj  路  3Comments

xogeny picture xogeny  路  3Comments

dnlsandiego picture dnlsandiego  路  3Comments

rpersaud picture rpersaud  路  3Comments

miljan-aleksic picture miljan-aleksic  路  3Comments