Cannot run Storybook in 6.3.2
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:7 (2 by maintainers)
It randomly stopped working for me. The
Content-Length
of the request to/
is0
. 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.Changing port is temporary solve of this issue. Idk why after each update I cant use previously used ports eg. 6006, 6007 …