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

Single story hoisting not working in svelte #14943

Closed
TheComputerM opened this issue May 15, 2021 · 2 comments
Closed

Single story hoisting not working in svelte #14943

TheComputerM opened this issue May 15, 2021 · 2 comments

Comments

@TheComputerM
Copy link

Describe the bug
Story having the same name as the component name will not be shown at all in svelte.

To Reproduce
https://github.com/TheComputerM/storybook-repro

System
System:
OS: Windows 10 10.0.19041
CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Binaries:
Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 7.12.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 81.0.4044.138
Edge: Spartan (44.19041.964.0), Chromium (90.0.818.62)
npmPackages:
@storybook/addon-actions: ^6.2.9 => 6.2.9
@storybook/addon-essentials: ^6.2.9 => 6.2.9
@storybook/addon-links: ^6.2.9 => 6.2.9
@storybook/addon-svelte-csf: ^1.0.0 => 1.0.0
@storybook/svelte: ^6.2.9 => 6.2.9

Additional context
C1.stories.svelte
image
Output
image

@TheComputerM
Copy link
Author

Changing <Story name="C1"> to <Story name="C2"> makes the story show up in the sidebar.

@TheComputerM
Copy link
Author

Bug with svelte-addon-csf: storybookjs/addon-svelte-csf#10

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