-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Storybook 8 Composition Flakiness #26288
Comments
I have a suspicion the storybook all share the same origin... I'll verify if this is the case. |
I followed the instructions, but ran into trouble:
At step 2, I got this error:
I'm not very familiar with docker, so I do not know how to solve this. |
Hey @ndelangen, thanks for taking a look! And apologies, the run command I originally had in the readme did not work -- I had moved cli args around thinking the order didn't matte (apparently the docker tag must be the last arg). The command should be the following (I've also updated it in the readme instructions): docker run -p 3003:3003 storybook8compositionrepro |
I'm releasing a canary to test this inside the docker: |
Hmm, I tried, but either I'm doing something wrong or it's still broken... I will need to simplify the repro a lot in order to debug. |
@willwill96 I'm still investigating, but I've noticed you have this:
And this is not a valid use of composition, these |
Why aren't relative urls officially supported? We can work around that at my work, but we've been using relative urls for composition for a couple years now to deploy to multiple domains for our development and it's convenient to have the single build of storybook. I tried updating the urls to have the full url ( Is there anything I can do to help simplify the repro? I wasn't able to reproduce with a single composition ref and wasn't able to reproduce consistently with just two. With 3 setup, it seems like at least one of storybooks consistently fails to load. The contents of each of the storybooks should be pretty much identical with the exception of package name and storybook-1 has the composition references. Otherwise, they were left as-is from what was generated from the storybook cli. Maybe some of the stories can be deleted? The main purpose of the Dockerfile is to have all of the storybooks hosted on the same url so CORS wouldn't be an issue. |
@willwill96 I got a solution, and I check if the local URLs are a problem, and they don't seem to be, sorry for pointing the finger at that. It seems though unintended originally, the code is working with relative paths. I'll be opening a PR later today. I really appreciate your responsiveness and willingness to help 🙏 |
Awesome! Thank you for the help on this, and looking forward to the v8 release! If there is anything I can do to help test the updates, please let me know. |
Describe the bug
When there are multiple composed storybooks, it seems that the loading becomes flaky. This is not an issue we have with our current Storybook 7 app. It seems like only two composed storybooks can be loaded at a time from my testing. Whenever we try to load composed storybooks, at least one always fails be stuck in a loading state in the sidebar like the following:
To Reproduce
Clone this repo: https://github.com/willwill96/Storybook8CompositionRepro
Build & run the docker image (instructions in readme)
Navigate to http://localhost:3003/main-storybook and note that at least one composed storybook always fails to load.
System
Additional context
I initially brought this up in this discussion, but it seemed like a bug ticket was warranted after more investigation:
#25276 (reply in thread)
The text was updated successfully, but these errors were encountered: