-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
The static build of Storybook 6 is DOA (sidebar links don't work) #11958
Comments
Do you have a repro you can share? |
Are there any error messages in the browser console? |
Same issue for me too. Any update on this? No console errors. |
@dimpu do you have a repro i can look at? |
I can try to work on a repro tonight or tomorrow. No messages in the browser console when this happens. |
Here's a small, simple repro: issue-11958.zip After you unzip:
One other random observation, that may or may not be related: with either kind of build, after the UI loads for the first time, if you click a sidebar link for a different component, the first component's group closes up. Storybook 5 didn't work that way. |
Thanks so much. Checking now! |
Hi @shilman Is there any update on this? I got this after I upgraded from 5 to 6 using |
Yes, was able to identify the problem with @tmeasday but still don't have any idea exactly why it's happening or how to fix. The problem is on this line: For reasons that we don't understand the iframe is getting re-rendered and the I've assigned this to @ndelangen who is most familiar with this part of the code for further investigation. |
Thanks @shilman . |
Back from vacation, This is on my agenda for this week! |
repro:
broken:
observations:
|
disabling the DLL seems to resolve this issue (but result in a longer build-time) for now, run |
@kaiyoma I hope that work around works for you until we find the root cause |
Yup, I can live with this. 😄 Thanks for digging into this! |
The digging must continue. |
Thanks @ndelangen, that worked for 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! |
This is still an issue, is it still being actively worked on? |
@OfriHarlev sort of. the workaround is to run with |
When I add --no-dll I get this error From link above: I checked that I only have one version of react I don't get this without --no-dll and I also don't get this error when using --no-dll with start-storybook
|
@shilman Thanks for your work here. I just burnt an hour debugging this before coming across this issue. Since this is a known problem, I'm happy to update the documentation with a link to this issue and a brief explanation. The docs could use some information here on these two pages:
Do you agree the documentation should be updated until 6.1 introduces a proper fix? |
@stabback Thanks for the offer! I believe the documentation for |
@stabback we welcome changes to the documentation. I'm ok with some changes to both pages you mentioned.
Loop me in when you've created the pull request if you don't mind and we'll take it from there. Sounds good |
Not super happy with the duplication of the docs, but as it'll be removed with the fix in 6.1 it's only temporary. Hopefully, it helps save someone a couple of hours of debugging! |
Workaround & documented. Closing. Will remove DLL in 6.1 #12637 |
I've run into this issue with sidebar links from the output of |
Upgrading to Storybook 6.1.20 actually did resolve it for me 😃 |
Describe the bug
Sidebar links in a static build of Storybook 6 don't work properly. Clicking on a link changes the URL, but the frame doesn't update and the rendering doesn't change. The first component loaded continues to appear on-screen.
I've tested 6.0.0, 6.0.4, and 6.0.5, and they all have this problem.
To Reproduce
Steps to reproduce the behavior:
build-storybook
)index.html
with a web serverExpected behavior
The UI should work correctly.
System:
My laptop:
I'm seeing the same problems in our CI system, which runs Linux.
Additional context
Running the dev server (
start-storybook
) works correctly. It's only the static build that is broken. There are no warnings or errors during the build and no warnings or errors in the browser console. Storybook 5 did not have this issue.The text was updated successfully, but these errors were encountered: