-
-
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
Story module not-showing/replaced by similar module #8086
Comments
@amypellegrini are there any errors in the browser console? |
@shilman Looked at the console I can see this:
Maybe the way SB encodes the id for the story removes the # at some point thus producing the collision? |
@amypellegrini is there another story with the id |
@shilman To debug this I removed all the stories leaving only two, one with the hash and the other without, like in the provided code snippet. If understand correctly the id is generated from the text string used to describe the module, so in this case the collision is generated by SB parsing the text string and removing the hash special character. To workaround the issue for now I just removed the special characters and used plain words ("sharp", "flat") so it's not like this is a major issue, maybe a note could be added in the documentation to warn users about this? An ideal scenario would be that this doesn't happen and I can use special characters, or alternatively I can provide a custom valid id so I can still use special characters without producing the issue. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Closing this as it's now documented. Thanks for raising the issue and the long waiting period before being addressed. Hope you have a great week! Stay safe |
Describe the bug
Having two modules with a matching starting name, and one of them with a # symbol, makes one of the modules disappear.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should show both listed modules.
Screenshots
Code snippets
System:
Version: @storybook/react: ^5.0.6
Additional context
Removing the # symbol, or changing the name of the missing module up to # character position, makes the module reappear.
The text was updated successfully, but these errors were encountered: