-
Notifications
You must be signed in to change notification settings - Fork 8
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
Story function not found {} undefined #6
Comments
Thanks @cescoferraro - what version of storybook are you using? Currently trying the support v6rc. If possible, i would recommend using the gatsby or nextjs versions becuase of performance reasons: https://component-controls.com/tutorial/getting-started/gatsby |
@atanasster i am using v5. :/ |
Thanks - pls let me know. In the meantime i will also try to get the v5support up to speed if possible - v6 and v5 are getting further apart unfortunately. Check my performance article as well, storybook doc sites are not performing very well in production: https://component-controls.com/blogs/gatsby-vs-nextjs-vs-storybook |
but maybe
|
@cescoferraro - those seem all storybook errors. Do you have all your storybook and associated addons upgraded to 6? |
@atanasster I am not using any addon. my main.js looks like
|
running |
@cescoferraro - not sure how it works the way you are installing. For me, I just add "@storybook/react": "next", On storybook 5, I found the incompatibility with global decorators - they are not exported the way they are exported in v6 and I am trying to find a way to cover both versions. I will post once I have some news. Are you using decorators in your preview.js config file? Do you have github repo that I can try and make sure everything works? |
@cescoferraro - I got a workaround for storybook 5 and have downgraded one of my projects to sb5 for testing:
|
I uploaded a screencast on youtube, with proof it's under storybook 5 :) |
@cescoferraro - I looked again at your initial post and it seems I have overcomplicated the issue with global decorators etc. Sorry about that - I was running errands during the day and It turns out just some of your storybook setups were a bit older-style ie require. context style loading of stories, which is not supported by component-controls. Also, you don't need the addon-docs if you are using component-controls. So here is a repo with storybook 5 that roughly replicates your setup from the initial post: https://github.com/atanasster/storybook-5-controls-starter |
@atanasster I finally managed to upgrade do version 6 anyways, the storybook get stuck somewhy. https://5f17c105f82a080022345e52-vobmerjtwh.chromatic.com/?path=/story/checkoutpagelayout--full-checkout-cart will try downgrading to version 5. and use the same config as your starter |
@cescoferraro the v6 rc are not very stable for me either. Also 6 is so far a bit slower than 5. Let me know your progress so i can close this issue as soon as you are set up. |
@atanasster YAY! its working now! |
@atanasster one more thing. |
is the a image field? it would be so cool if I could randomize the images on my components |
thanks for your support @atanasster |
Yes you can randomize images - check the video on my twitter post. Here is a post on controls and it has sole more links inside https://component-controls.com/blogs/introduction-to-controls Documentation is still wip so let me know if you miss some info - create a new issue. |
Hi! Thanks for the amzing library.
I am having some issues implementing this on a project I currently working on.
The text was updated successfully, but these errors were encountered: