question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run Storybook in 6.3.2

See original GitHub issue

Describe the bug Running npm run storybook opens to a blank page with 3 initial 404 errors. A refresh shows that the missing files are a main and vendor js file.

To Reproduce

npx create-react-app storybook-test
cd storybook-test
npx sb init
npm run storybook

I didn’t touch any code.

System System: OS: macOS 10.15.7 CPU: (4) x64 Intel® Core™ i5-4288U CPU @ 2.60GHz Binaries: Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node npm: 7.16.0 - ~/.nvm/versions/node/v14.16.0/bin/npm Browsers: Chrome: 91.0.4472.114 Safari: 14.1.1 npmPackages: @storybook/addon-actions: ^6.3.2 => 6.3.2 @storybook/addon-essentials: ^6.3.2 => 6.3.2 @storybook/addon-links: ^6.3.2 => 6.3.2 @storybook/node-logger: ^6.3.2 => 6.3.2 @storybook/preset-create-react-app: ^3.1.7 => 3.1.7 @storybook/react: ^6.3.2 => 6.3.2

Additional context I noticed the bug earlier today when working on a client’s project and was able to reproduce a simpler version of the project described above.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
steve-taylorcommented, Jul 21, 2021

It randomly stopped working for me. The Content-Length of the request to / is 0. I hadn’t changed any dependencies. I tried deleting all browser storage, running in incognito, changing ports, rolling back to previous commits, rebooting my machine, etc… All to no avail. Does it have a dependency on a web service that’s currently down? That’s the only thing I can think of to explain it.

Edit: The manager cache was corrupted. I fixed it by running start-storybook with the --no-manager-cache option once. It seems to have invalidated the cache, because after that it works without the --no-manager-cache option.

3reactions
mitow7821commented, Jul 1, 2021

Changing port is temporary solve of this issue. Idk why after each update I cant use previously used ports eg. 6006, 6007 …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Storybook for Vite
Read on to learn more about Vite, how to use it in Storybook, and our roadmap for supporting community builders in the future....
Read more >
Storybook 6.3 - JS.ORG
Storybook is the industry-standard UI development workshop for components and pages. It's used by Dropbox, Shopify, Stripe, and thousands ...
Read more >
Install Storybook
If you run into issues with the installation, check the Troubleshooting section below for guidance on how to solve it. ... Storybook needs...
Read more >
Decorators - Storybook - JS.ORG
Wrap stories with extra markup. Some components require a “harness” to render in a useful way. For instance, if a component runs right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found