-
Notifications
You must be signed in to change notification settings - Fork 36
Smartknobs is not showing up, what am I missing? #37
Comments
You didn't register the addon(s). https://github.com/storybooks/storybook/tree/next/addons/knobs#getting-started |
I published 4.0.0 I upgraded all dependencies to the latest This package is now storybook 4.x.x compatible. Please let me know if this resolves the issue 👌 |
@mahmoud-zakria-sociomantic if you run the storybook in this repo, does it show up then? What differences are there between the example in this repo and your setup? |
@ndelangen |
Renamed to Smartknobs is not showing up |
Yeah the example in the codebase is working on my machine.. 😕 |
@mahmoud-zakria-sociomantic Can you share a repo that has this problem so I can debug? |
Node version: 8.11.4 |
@ndelangen Is it working with you? |
@ndelangen , I've tried the below updates and still no knobs "@storybook/addon-actions": "^4.1.2", |
I looked at it for an hour or so, I can confirm something is wrong, but I wasn't able to find a solution. The difference that I could find was: It has something to do with https://github.com/storybooks/babel-plugin-react-docgen not being applied. But I couldn't figure out why. |
This should be in the readme |
I'm getting:
|
@melMass it has to be |
Also getting this issue but no errors that allude to a problem |
@azz0r I'm following them on Slack they are going to handle it after releasing v5. |
@mahmoud-zakria-sociomantic Is there any estimation on resolving this issue ? And when they are planning for V5 |
We're scheduled to release v5 in a week or so but there will be a lot of v5 support after the release and we've pushed a lot to post-v5 so frankly I wouldn't wait on this. AFAIK plain knobs are working great |
PLain knobs IS working, this code in the addon is working, it's the generation of the needed data from propTypes/ types that is not working and causing the knobs to not show up. |
@shilman is there any estimation to resolve this issue ? So that all nobs will work on the basis of proptypes/flowTypes can you please update the planning to fix this , so that we can proceed accordingly . |
like i said above, |
Any update on this? |
Hello, I have deep dived on the issue, and I think we have to upgrade this library to check props from propTypes instead of genDoc, which is (even when having the plugin at the right place) not working. I've found that addon-info is working like a charm with the PropTable, correctly displaying each props with their type. In its code it can either fetch this data from genDoc or directly from the propTypes. I'll try to push a PR this week-end to fix this if people are still interested. |
Currently
I'm taking the example provided in the
README.md
adding on itimport '@storybook/addon-actions'
or gonna fail asking for it.Here's my
package.json
dep and devDepIssue
The text was updated successfully, but these errors were encountered: