-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
StorybookDocs 5.2: Passed an incorrect argument to a color function, please pass a string representation of a color. #8226
Comments
Narrowing it further down:
[3]
[4]
|
@rwieruch A few things: You don't need to configure docs.{page,container} or source-loader if you're using the docs preset. Though I think this is unrelated. Judging from the stack trace, this looks to be a problem with theming. It looks like you're using the default theme, and AFAIK nothing really changed in theming between the two versions. So I suspect that this is some kind of dependency issue. Have you tried deleting node_modules & reinstalling? Deleting lock file and reinstalling? |
Unfortunately still same error output. Canvas works though. |
I got it. And I missed to include the crucial part in the bug report. During my migration I also changed:
because if the warning in the developer console that said:
I thought it had to be an object with two strings, but instead I should've checked the theming docs.
Sorry again for wasting everyones time on this :( Looking forward to use the Docs feature! |
Just wanted to leave a quick note to say that I made exactly the same error with the theme - so your post helped me too. Thanks! |
Describe the bug
If I switch on the "Docs"-Tab, I get this error message.
Full stack trace [0].
To Reproduce
The "Docs"-Tab worked before as expected. I used Storybook Version 5.2.0-alpha.35 but upgraded to 5.2.1. [1]
The only configuration in .storybook/config.js that I had to change to make the other "Canvas"-Tab work was [2]:
Expected behavior
The "Docs"-Tab should work after the migration.
Screenshot
Code
[0]
[1]
[2]
System
The text was updated successfully, but these errors were encountered: