Skip to content
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

[Bug][v7]: Autodocs with HTML renderer fail when no component description #20613

Closed
jameschensmith opened this issue Jan 13, 2023 · 1 comment

Comments

@jameschensmith
Copy link

Describe the bug

Summary

extractComponentDescription does not exist for the HTML renderer, but it's trying to be used in the autodocs when no component description is provided. As a result, the docs do not get rendered when navigating to them. In v6, not having a description did not result in this exception.

Error

Uncaught TypeError: _e.extractComponentDescription is not a function

Workaround

Add parameters.docs.description.component to your story. Though, I wasn't able to set this value in .storybook/preview.js to have a default applied to all stories.

To Reproduce

No response

System

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1 Pro
  Binaries:
    Node: 16.18.0 - ~/.local/state/fnm_multishells/74289_1673620730399/bin/node
    npm: 8.19.2 - ~/.local/state/fnm_multishells/74289_1673620730399/bin/npm
  Browsers:
    Firefox: 108.0.2
  npmPackages:
    @storybook/addon-a11y: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/addon-essentials: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/addons: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/builder-vite: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/html: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/html-vite: ^7.0.0-beta.25 => 7.0.0-beta.25 
    @storybook/theming: ^7.0.0-beta.25 => 7.0.0-beta.25

Additional context

No response

@jameschensmith
Copy link
Author

Fixed in #20590. Thank you, Storybook devs, for your hard work! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant