-
-
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
Expecting a valid React element from the story with Knobs #1160
Comments
Hey, @leonidaX |
Yes it does, I replaced the storybook-addon-knobs.d.ts file with the previous revision in my node_modules and it works fine as before. |
@leonidaX, |
@Gongreg, |
@leonidaX, |
Maybe it would help to get a simple reproduction of the story that highlights the problem? |
As I understand simply users using typescript and trying to use withKnobs were getting an error. |
I downloaded the latest definition that you added in the PR and it's working. |
I'm also having problems with knobs now showing after updating the package version to
and
Applying the PR didn't solve this problem. After updating my code from |
Hey, @darekkay, Also if you want to use withKnobsOptions you have to call it like this: But that will not change situation for you in this case.. |
@darekkay Please remove all node_modules and reinstall. After, check if there are any |
@Gongreg @ndelangen - Thanks for the quick reply! Removing and reinstalling |
@darekkay Thanks, good to know! Can the close the issue now? :) |
Fine with me 👍 |
Hi recently there was a change in the types definitios of
https://github.com/storybooks/storybook/blob/master/addons/knobs/storybook-addon-knobs.d.ts
withKnobs was converted to an interface and replaced by withKnobsOptions
This mismatches the documentation and also seems to break the functionality since even by replacing withKnobs by withKnobsOptions doesn't work, now I get an error:
Expecting a valid React element from the story: "foostory"
The text was updated successfully, but these errors were encountered: