-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-docs: Story source not shown when a variable named parameters is declared within CSF story #8055
Comments
@shilman Just wanted to let you know that I'm experiencing this as well, but I haven't added a |
@patdryburgh can you try the latest 5.3 prerelease on the |
@tolerance-go do you have a repro? |
@shilman https://github.com/tolerance-go/markv/blob/d53c41486275730118731e932a456dad6abd73aa/src/components/MarkdownEditor/stories/index.stories.js#L15 i upgraded to CSF story export,and all the packages have been upgraded to ^ 5.3.0-rc.12,still shown "No code available" |
@tolerance-go Source-loader doesn't support fully dynamic titles. Please use a string constant or template literal. export default {
title: "components|MarkdownEditor",
// title: route,
component: MarkdownEditor
}; |
😔 |
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
|
Describe the bug
"No code available" is shown in docs preview when a variable,
parameters
, is declared at the top level in a CSF file.To Reproduce
Uncomment the commented lines in this code snippet:
Expected behavior
Both the commented and uncommented version of the snippet should behave the same.
System:
Environment Info:
System:
OS: macOS 10.14.5
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Binaries:
Node: 10.16.0 - /usr/local/opt/node@10/bin/node
Yarn: 1.17.3 - ~/workspace/component-library/node_modules/.bin/yarn
npm: 6.5.0 - ~/workspace/component-library/node_modules/.bin/npm
Browsers:
Chrome: 76.0.3809.132
Safari: 12.1.1
npmPackages:
@storybook/addon-a11y: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addon-actions: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addon-docs: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addon-knobs: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addon-links: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addon-viewport: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/addons: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/preset-scss: 1.0.2 => 1.0.2
@storybook/preset-typescript: 1.1.0 => 1.1.0
@storybook/react: ^5.2.0-rc.11 => 5.2.0-rc.11
@storybook/source-loader: 5.2.0-rc.11 => 5.2.0-rc.11
@storybook/theming: ^5.2.0-rc.11 => 5.2.0-rc.11
The text was updated successfully, but these errors were encountered: