You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used { instead of (, and so didn’t return anything.
As a result, I got this error:
I think Storybook should validate elements before passing them to React. If element is undefined, it should throw something like "Expected the function in storiesOf().add(...) to return a React element. Instead it returned undefined. Did you forget the return statement?"
Similarly, if element.type is undefined, print something like "Expected the function in storiesOf().add(...) to return a valid React element. However, element's type is undefined. If you imported that component without the curly braces, verify that it was exported with an "export default" syntax."
The text was updated successfully, but these errors were encountered:
Can you spot a mistake here?
I used
{
instead of(
, and so didn’t return anything.As a result, I got this error:
I think Storybook should validate elements before passing them to React. If element is undefined, it should throw something like "Expected the function in
storiesOf().add(...)
to return a React element. Instead it returned undefined. Did you forget the return statement?"Similarly, if
element.type
isundefined
, print something like "Expected the function instoriesOf().add(...)
to return a valid React element. However, element's type is undefined. If you imported that component without the curly braces, verify that it was exported with an "export default" syntax."The text was updated successfully, but these errors were encountered: