New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook stuck loading #17329
Comments
Having the same problem with webpack 5 on the latest prerelease.
|
There are probably two different problems going on here. @thany I think your use case of using webpack4 with CRA5 is not supported by the preset. @nvonbenken I think you are hitting a bug starting in 6.5.0-alpha.23 introduced by #16727. you can downgrade to 6.5.0-alpha.22 or wait for a fix which should be forthcoming. |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.26 containing PR #17361 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
The issue still persists even after upgrading storybook to 6.5.3 |
Have the same issue after upgrading from |
@trainoasis I believe that loading error happens when you use |
it does, and have tried that, thanks - in general I want to upgrade to |
Be careful that this behavior is not being caused by the component hierarchy having two consecutive export default {
title: "Atoms//Button
} as Meta |
There should be some error message from Storybook to help us identify what the problem is and what causes it. For now and until Storybook take some action, we can use |
Agree, it would be great with some error messages in the "infinite spinner" case. |
I'm having the same issue and have deadline to deliver the storybook and I'm sooooo blocked :( |
@NourIM try to check the browser dev tools console. I had the same problem but then I checked the console logs and found that some import was undefined |
@velidan :( |
This should not be closed :) @shilman |
@johannespn What's left to do here? |
Hi @shilman! I'm running the storybook with the below configuration and I'm only getting a spinning page
I used react-scripts": "5.0.1" and @storybook/preset-create-react-app": "4.1.2" to solve the issue as you mentioned before and it did not work :( sorry, I can't share my repo it's private. |
In my case all requests were rewritten to index.html. I added rewrite rule fore iframe.html |
Not sure if this will help anyone but after a few hours of debugging I finally got rid of the stuck loading by fixing this little mistake:
|
This bug should not be closed. Storybook should output some reason as to why it is whitescreening. |
This happened to me on FF when I had too many storybook tabs open. I don't know why, but opening in Chrome / closing all my FF tabs with SB in them made the whitescreening go away. |
agreed, same issue, please reopen. in my case it's caused by passing a specific prop into the component, i have no clue why it's causing this issue. zero logging whatsoever |
I'm facing the same issue using: please reopen and fix the issue |
For me this happens in a monorepo. When my story imports one of my monorepo packages/a component that uses that package, the storybook ends up infinitely loading. There is no error. |
also facing the same issue.
|
this issue is hitting people at random and is likely caused by corporate sabotage paid for by competition like figma. We have to wait for the developers to be not paid off to fix this one |
We are facing this exact same issue too. 😕 |
In my case, I used some context provider, that was
and it starts working for some reason |
Same issue.
With barebone import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: ["../src/**/button.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-essentials"],
framework: {
name: "@storybook/react-vite",
options: {},
},
};
export default config; And barebone import type { Preview } from "@storybook/react";
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};
export default preview; |
Same thing has happened to me. It was working fine 10 minutes ago, and then I tried to add storybook-preset-inline-svg and got the infinite load. Removed the dependencies and re-ran No real indication of the issue, but this error might be related:
Version 6.5.16, and I can't upgrade because the project is React 17 and react-native-web which isn't supported in the new version, I've tried. |
@lockykeaney did you try removing node_modules? We're trusting yarn to remove old code and not compromise our systems. Can't leave any stones unturned |
@clevertree Yeah, done the whole nuke and everything, but no change. I might have to completely remove my install of storybook and give it another shot. |
Describe the bug
In an attempt to update from 6.4.9 to 6.4.14, after building and opening the browser tab, Storybook initially loads into its loading state, but it's stuck there. It never completes loading its UI, like this:
There are no build errors/warnings, no console errors and no meaningful warnings, and no network errors.
Only thin I can see is
/progress
which is presumably a part of Storybook, doesn't finish loading.I've also upgraded
@storybook/preset-create-react-app
from 3.2.0 to 4.0.0, and in the changelog, all I can see is support for CRA 5, which is all fine - I should assume CRA v4 is not removed, is it? Because that one hadn't been upgraded. However, downgrading this package back to 3.2.0 works around the problem: Storybook 6.4.14 now loads correctly.To Reproduce
Follow the above description.
System
Please paste the results of
npx sb@next info
here.(How does this still manage to miss the one browser I'm actually using??)
Additional context
Other packages noteworthy:
I'm in the process of updating (or trying to, honestly) our dependencies to their latest, and I would like small chunks of updates at a time. Updating too many packages in one go makes it difficult to diagnose problems. So yeah, I could also update Craco, but I don't want to just yet, because it's not only Storybook depending on it.
The text was updated successfully, but these errors were encountered: