-
-
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
Addons panel not showing - but knobs are still working(?) #8383
Comments
Sometimes the UI gets into a funny state where the addon panel is hidden based on local storage. In that case, running |
Yeah I did that and it worked, sorry for the redundant issue, thank you for your help! |
Sorry for the bug! Glad you got it working! |
this saved my day, tvm @shilman |
Not sure this should be closed - is this not fixable ? This happens quite often |
Re-opening. We should figure out how to fix this bug. |
thanks for for the hint on fixing it. Looking forward to a permanent fix |
If it helps, I just ran into this bug immediately after adding the knobs package. All I did to get the panel to be visible was to go to the Maybe that'll help, maybe not! |
I am also running into this issue, except that clearing local storage/opening an incognito window doesn't work. I can find the panel in the Elements console and force it to be visible, and the knobs work just fine. Update: it started working after I switched from in the config. And then when I changed it back to |
Had the same issue, changing orientation helped but it keeps disappearing whenever I select another story. I believe it might be related to the 3:2 ratio screen (Surface Book) and maybe it's not treating it as a desktop because of that? |
Had the same issue on a desktop, chrome. Again, changing orientation helped but it keeps disappearing whenever I select another story. |
Glad I came across this page. I encountered this frustrating bug today and |
Hey, I just ran into this bug on Storybook 6.0.10, but I found a fix for it by changing the config: // preview.js
addParameters({
options: {
showPanel: true,
panelPosition: "bottom",
},
}); Moving these into the // manager.js
addons.setConfig({
showPanel: true,
panelPosition: "bottom",
}); Maybe this helps you find the underlying issue or other people looking for a workaround ;) |
Came across this in Storybook 6.x, the localStorage.clear() solution fixed it. |
+1 on localStorage.clear() as a quick fix (^6.0.18) And also @milenaNeumann 🙌 🙌 When in this state the following will not resolve:
Quick and dirty fixes:
Long-term fix (this seems to resolve in all cases, props to @milenaNeumann): npm i @storybook/addons .storybook/manager.js: import { addons } from "@storybook/addons";
addons.setConfig({
showPanel: true,
panelPosition: "bottom",
}); |
Same. Been following through the guide and i'm having the same issue, nothing here fixes it for me. I can go to the Docs tab and set my args there however. Edit: Managed to make this work by updating all my packages with npm-check-updates. |
Just to be sure: this should happen only for users that saw the Storybook before it had Knobs, right? Completely new visitors should not be affected. |
For me none of the above worked, but I managed to fix it by adding the controls addon in the main.js:
|
This did the trick for me!!! |
In version 6.3.0 none of the above options seems to work anymore ... 😞 |
I'm seeing the same on my end. Tried all of the above steps including clearing the localStorage and trying other browsers. Could it be because I'm only using MDX docs? Are addons even available in this case? |
@surdu do you have a repro? |
Not using them, still have the issue
Unfortunately, no, it's a private repo :( |
This continues to happen in v5.1.11, clearing |
I'm still getting this issue on the latest version of storybook. |
Reproduced using SB 6.4.19. |
Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.50 containing PR #17714 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
FYI, this issue is still present in 7.0.0-beta.19 when running firefox. Will try beta.34 later. |
@shilman Issue still present in |
@shilman this issue is still present in |
Two years old and bug is still present |
I am using the [a] [s] [d] keys to make it visible if missing, they are configured as layout shortcuts by default... |
Just had this issue too. On Firefox, |
Describe the bug
I am using the knobs addon for my StencilJs project and it is technically working (if i set the component prob within the story it is changing it, for example: look at the story file and then the component, you will see that it is setting it - and it does). but I cannot see the addons panel. I think have done all the set up correctly (addons.js, package.json, etc).
I have tried selecting the show addons option inside of the running storybook but nothing is displayed.
How i am running it is with
npm run storybook
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to see the addons panel if I have an addon installed to be used
Screenshots
![storybook](https://user-images.githubusercontent.com/5850319/66636552-549dcf80-ec09-11e9-9b53-0617b02c85bf.png)
Code snippets
Below is my .storybook/addons.js
Below is my package.json
Below is my .storybook/config.js
below is my story.tsx
System:
Additional context
The text was updated successfully, but these errors were encountered: