Skip to content

[Bug]: Passing a React Node as a prop breaks docs in v9 #32183

@ChrisSargent

Description

@ChrisSargent

Describe the bug

When passing a react node as a prop to a component, the docs page breaks with a "Cannot convert a Symbol value to a string" error.

This has only started happening after we migrated to v9.

Reproduction link

https://stackblitz.com/edit/github-j2jbgj4b?file=src%2Fstories%2FButton.stories.tsx

Reproduction steps

  1. Go to the above link
  2. Click on the 'docs' for the Button stories
  3. Check that a node is being passed to the label prop of the button
  4. See the error

System

Storybook Environment Info:

  System:
    OS: macOS 15.5
    CPU: (8) arm64 Apple M3
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.19.4 - ~/.nvm/versions/node/v20.19.4/bin/node
    Yarn: 4.9.2 - ~/.nvm/versions/node/v20.19.4/bin/yarn <----- active
    npm: 10.8.2 - ~/.nvm/versions/node/v20.19.4/bin/npm
  Browsers:
    Chrome: 138.0.7204.184
    Safari: 18.5
  npmPackages:
    storybook: ^9.1.0 => 9.1.0

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions