-
-
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
bug in CSF export default #9457
Comments
@Pain-and-Love are you sure it works in 5.2.8? Can you double check? I would't expect it to work (it shouldn't work). The sidebar shows stories and when there are no stories, there shouldn't be anything to show. The I think this is a reasonable feature request, but it would be tricky in the current architecture. Let's see what other people say! |
|
i hope this way could work fine in 5.3.3。 |
@Pain-and-Love you are exporting named constants above |
yeah. some code. expect that the line 6。 |
Can you share a reproduction repo? |
https://github.com/Pain-and-Love/storybookReproduction you can change the version from 5.2.8 to 5.3.4. then u will find the SiderBar does not show the Button |
hi~, i can reproduction this bug in the repo. and i am worried with it ... could u plz resolve it as soon as possible 🥺 |
SAD T.T |
@atanasster mind taking a look? |
@shilman got it |
but i don't add the Docs Addons in my addons. |
@Pain-and-Love It's working on my machine. I had to regenerate
=>
|
Its caused by "@storybook/source-loader" - so any add-on like ''@storybook/addon-docs', '@storybook/addon-notes', '@storybook/addon-storysource', that are using it in their presets will cause this issue. |
i remove all the addons. and delete yarn.lock. in my repo |
yeah. i have tries remove all the addons from my main.js. |
You have "@storybook/source-loader" in your config - can you try removing it? |
Yes, this one - you can still use typescript. |
but it could show Stories in the SiderBar and support show .tsx source code in the addon.
but in the version 5.2.8。 it works fine together... T.T |
I really doubt it works fine in 5.2.8. For your needs (to not duplicate story title and config, iI would suggest to share the default object:
and then use it in your story files:
|
thx. i confirm it works fine in 5.2.8。 because i upgrade it from 5.2.8 to 5.3.1 with the same config。 and when i add the line 6. it works in 5.3.5. it is strange. |
Very very strange - and you were able to see the story source code? |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.6 containing PR #9505 that references this issue. Upgrade today to try it out! Closing this issue. Please re-open if you think there's still more to do. |
THX very much. i would take your way (sharing the default export title) to resolve this problem |
Describe the bug
i cant see the Components in the Storybook SideBar
To Reproduce
Steps to reproduce the behavior:
just create a file named by X.stories.tsx; then import other Comps
Expected behavior
if i remove the line 6; then i can see nothing about these Comps in the Storybook SideBar
Screenshots
System:
Environment Info:
System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Binaries:
Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v10.16.3/bin/npm
Browsers:
Chrome: 79.0.3945.117
Safari: 13.0.4
Additional context
in the version 5.2.8. it works fine without the line 6; but in the version 5.3.3, it goes wrong(can't see the Comps in SideBar);
The text was updated successfully, but these errors were encountered: