Open JReinhold opened 1 year ago
Hi @JReinhold , the links you have provided are not working. The specified branch is deleted. Can you please update the issue description and link to the source files you mentioned.
Thanks @AnandChandrakar . Updated
Describe the bug
When passing a Module to an arg in a CSF story like this:
The story crashes with
Cannot convert object to primitive value
:An error that is thrown from here: https://github.com/storybookjs/storybook/blob/7584d9630a55825e5b747291bb506f38ed45d402/code/renderers/react/src/docs/jsxDecorator.tsx#L111-L112
To Reproduce
git checkout block-description-improvements
cd code
yarn storybook:ui
http://localhost:6006/?path=/story/storybook-blocks-blocks-description--of-meta-as-meta-comment
The source for the stories can be seen here: https://github.com/storybookjs/storybook/blob/7584d9630a55825e5b747291bb506f38ed45d402/code/ui/blocks/src/blocks/Description.stories.tsx
Additional context
This is not a problem if the arg is defined in the meta, only in the story.