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]: Adding a decorator breaks Show Code view #21964

Closed
grish92 opened this issue Apr 6, 2023 · 1 comment
Closed

[Bug]: Adding a decorator breaks Show Code view #21964

grish92 opened this issue Apr 6, 2023 · 1 comment

Comments

@grish92
Copy link

grish92 commented Apr 6, 2023

Describe the bug

When adding decorator withHeadless in the Preview file, the Show Code view in the Docs View is breaking.
Showcode with withHeadless decorator
Screenshot from 2023-04-06 12-54-52

Showcode without withHeadless decorator
Screenshot from 2023-04-06 12-58-21

To Reproduce

npm packages:
"@storybook/addon-docs": "^6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-interactions": "6.5.16",
"@storybook/addon-links": "6.5.16",
"@storybook/addon-postcss": "2.0.0",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/react": "6.5.16",

System

No response

Additional context

No response

@shilman
Copy link
Member

shilman commented Apr 10, 2023

Please try upgrading to 7.0 https://storybook.js.org/migration-guides/7.0 and track #21649 which should be fixed in the next release or so. Closing this for now.

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

2 participants