-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
[React Native] No Addon tab in @storybook/react-native-server > v5.3.x #24
Comments
@JeffGuKang Just had a similar issue with the web-components app. See if pressing A or D brings the panel back. |
I have the same issue, and pressing A or D doesnt help. |
Having the same issue, not able to see addons tab (only after updating to v5.3.x) on browser but addons tab is available on-device. Quick-fix: Downgrading the version to 5.2.8 worked for me. |
It works also |
Same issue for me on 5.3.9 |
Same issue for me on 5.3.12 |
Hey, I've looked into this one. I've found why it is happening and now I am trying to find the root cause of it. Info: I found out that addons.js file is loaded only after provider.handleAPI() (which calls addons.loadAddons()) is called. I will continue looking into it after I get some updates from other maintainers. |
@Gongreg Any updates? Seems you almost got the fix :) |
Same issue for me on 5.3.12 |
Hey, sorry. Got quite demotivated to work on the Storybook for React Native since there isn't a lot of activity happening here. I hope to get back at it, would be really happy to see some people contributing to the project. |
I will try to help with what I can |
Same issue for me on 5.3.18 |
None of the panel are showing - knobs, actions. Running react-native w/ Storybook version 5.3.18 |
@prabhjodhOYO Could you tell me how to downgrade?
Thanks. |
In the meantime, I share with you this patch to fix the bug and make add-on tab reappear :
Steps to apply the patch :
|
Cheers @fabien88 , just curious if I'm looking into
Illustration: https://share.getcloudapp.com/5zu1olrq |
You're missing |
Agh how'd I miss that, cheers again @fabien88. I've come across #4, looking into that. Still have the browser/simulator out of sync, I'll raise as separate issue since we're not aware and look into that too. (Illustration: https://share.getcloudapp.com/z8uxRej8) |
This issue is fixed in later versions of storybook/core see storybookjs/storybook#10468 looking into the possibility of getting this fix for 5.3.x |
Storybook 5.3.20 was released with a fix for this and once #100 gets merged this issue will be fixed. Alpha release will follow in order to confirm everything is working as expected. |
I released an alpha version with this fix install |
I still have this issue with |
@levino make sure you have addons properly configured. For the server addons they must be in the storybook folder in the addons.js file. |
Thanks @dannyhw! Following your comment I fixed my issue with an additional file import '@storybook/addon-actions/register' I do not import this file in my apps code. It is just lying there for storybook server to pick it up. Also note that I do not import |
I am also experiencing this issue with Installed storybook via Storybook's RN tutorial script
@dannyhw or others, this is the default config from the script. Are these config files correct. Thank you! |
@ghsupear looks ok to me, just make sure you fix all your versions to ^5.3 since there can be incompatibilities with version 6+ especially in 6.4. |
@dannyhw by default, this is what the script added to my devDependencies.
I updated this to the following without success
Is there anything else I should be aware of? |
@ghsupear seems fine, and do you have stories that use knobs or actions? The add-ons will only appear when they are used. |
also make sure that you have |
@ghsupear I have the same version of
|
@dannyhw I have stories that use both knobs and actions plus
Anything new happening in this space ? appreciated. |
@ashishkarki it might not be related but your version of storybook addons is 6.5, you should downgrade that to be |
Hi @dannyhw , thanks for the response. I tried with two different package versions of the
|
@ashishkarki do you have the addons file and a rn-addons file? If you can send me a reproduction of the problem I can help more easily. |
@dannyhw yes, i have those files and following are the contents of those files. I can send either a github link or codesandbox type link in a bit. Meanwhile below i am posting the structure of my
Also, (1) both the actions and the knobs tabs appear for me (2) but, the actions work for me (3) while the knobs don't like these screenshots: and, this is the stripped-down version of my
and, then the
and finally, here is what the folder structure of my |
@ashishkarki The problem is your knobs are created outside the component. If you put it like this it might work. <SomeComponent variant={select('color', { GREEN: 'greem', BLUE: 'blue'.... }, GREEN)} disabled={boolean('booly', false)} />; However you should call storiesOf in the SomeComponentStory file not in the index like this: SomeComponentStory import { boolean, select } from '@storybook/addon-knobs';
import React from 'react';
import { SomeComponent } from '../.............';
storiesOf('ContentTile', module)
.addDecorator(withKnobs)
.addDecorator(StylesDecorator)
.add('Default', () => <SomeComponentStory variant={select('color', { GREEN: 'greem', BLUE: 'blue'.... }, GREEN)} disabled={boolean('booly', false)} />); |
Describe the bug
I cannot find addon tab in @storybook/react-native-server v5.3.3.
I have been using addons well like addon-knobs in v5.3.0-alpha.45 as below.
"@storybook/react-native-server": "v5.3.0-alpha.45",
"@storybook/react-native-server": "5.3.3"
There is no addons tab
storybook/addons.js
To Reproduce
Steps to reproduce the behavior:
yarn storybook
Expected behavior
Can use Addon tab
System:
The text was updated successfully, but these errors were encountered: