storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.61k stars 9.31k forks source link

[Bug]: Subcomponents doesn't show code preview in docs (v7) #20486

Open LucasCaixeta opened 1 year ago

LucasCaixeta commented 1 year ago

Describe the bug

Hello,

We created a component based on MUI modal, with subcomponents (Title, Content & ContentActions): image

And created stories to show it like this one: image

But, when I ran the storybook and went to docs and show code, I received this as return: image

To Reproduce

No response

System

No response

Additional context

npx @mui/envinfo System: OS: macOS 12.6.2 Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node Yarn: Not Found npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm Browsers: Chrome: Not Found Edge: Not Found Firefox: Not Found Safari: 16.2 npmPackages: @emotion/react: ^11.10.5 => 11.10.5 @emotion/styled: ^11.10.5 => 11.10.5 @mui/base: 5.0.0-alpha.112 @mui/core-downloads-tracker: 5.11.2 @mui/material: ^5.11.2 => 5.11.2 @mui/private-theming: 5.11.2 @mui/styled-engine: 5.11.0 @mui/system: 5.11.2 @mui/types: 7.2.3 @mui/utils: 5.11.2 @types/react: ^18.x => 18.0.26 react: ^18.x => 18.2.0 react-dom: ^18.x => 18.2.0 typescript: ^4.9.4 => 4.9.4
LucasCaixeta commented 1 year ago

@Pettrus

shilman commented 1 year ago

@Integrayshaun @kasperpeulen did either of you see this while investigating MUI?

@LucasCaixeta can you please share the output of npx sb info?

ShaunEvening commented 1 year ago

@shilman I haven't, no :(