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

Addon-docs: Code missing in docs if CSF story is camelCase'd #7936

Closed
roman-balzer opened this issue Aug 30, 2019 · 2 comments
Closed

Addon-docs: Code missing in docs if CSF story is camelCase'd #7936

roman-balzer opened this issue Aug 30, 2019 · 2 comments

Comments

@roman-balzer
Copy link

If you are reporting a bug or requesting support, start here:

Bug or support request summary

Please provide issue details here - What did you expect to happen? What happened instead?
I'll wrote my stories in the new CSF format, some had a now, containing a single word and some multiple, which I then used camelCase for. For those with camelCase'd names the source code of the story could not be shown. Oddly, camel_Case_With_Underscores did work again. To summarize

export const foo = () => <Component />`  // Works
export const Foo = () => <Component />`  // Works
export const withFoo = () => <Component />`  // Does not work
export const WithFoo = () => <Component />`  // Does not work
export const with_Foo = () => <Component />`  // Oddly works

Steps to reproduce

Just write csf stories with different upper und lower cases

Please specify which version of Storybook and optionally any affected addons that you're running

all versions on 5.2.0-beta.46

Affected platforms

Windows and Chrome

@shilman
Copy link
Member

shilman commented Aug 30, 2019

Thanks so much @roman-balzer. Looks like a bug introduced in #7901 or one of its related PRs. Will fix and release in the next 12h.

@shilman
Copy link
Member

shilman commented Aug 31, 2019

Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-rc.1 containing PR #7940 that references this issue. Upgrade today to try it out!

You can find this prerelease on the @next NPM tag.

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Aug 31, 2019
@shilman shilman changed the title Addon-docs: Code will not be shown in docs if CSF story is camelCase'd Addon-docs: Code missing in docs if CSF story is camelCase'd Aug 31, 2019
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