-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Theme error when using Storybook 5.3+ #221
Comments
In packages/storybook-readme/src/services/getParameters.js#L17, should be something like ...(parameters.options && parameters.options.theme ? parameters.options.theme : {}) |
This fixes issue #228 as well |
Thanks @bbellmyers FYI if you're using Typescript you need to define |
This is happening to me too. What is exactly the solution? I don't see any concrete example. |
Ok, if anyone is looking for an up-to-date workaround with complete context, add this to your import { addParameters } from '@storybook/react';
addParameters({
options: {
theme: {}// this is just a workaround for addon-readme
},
}) |
If I use the code proposed by @danielo515, I get "Passed an incorrect argument to a color function, please pass a string representation of a color" instead of the previous error. My version of Storybook is 5.3.19. |
This is a follow up to issue #220. I am having the same issue and I do not set a custom theme at all. I had to add the following to make the error go away:
addParameters({ options: { theme: {} } });
The text was updated successfully, but these errors were encountered: