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

Check out story order -- some weird things are happening #1071

Closed
dcwarwick opened this issue Jul 23, 2021 · 1 comment · Fixed by #1077
Closed

Check out story order -- some weird things are happening #1071

dcwarwick opened this issue Jul 23, 2021 · 1 comment · Fixed by #1077
Labels
type: bug 🐛 Something isn't working

Comments

@dcwarwick
Copy link
Contributor

For example, the PageHeader stories are being scrambled, and some of the SidePanel stories show up out of order -- this seems to happen on production built storybook, while local storybooks preserve file order as expected.

Should investigate why this happens and can we stop it to get the stories in the desired order.

@dcwarwick dcwarwick added the type: bug 🐛 Something isn't working label Jul 23, 2021
@dcwarwick
Copy link
Contributor Author

The Webpack bundling process seems to be sorting exports into alphabetical order. This means that when storybook preserves the "export order", it's actually preserving the sorted order. See storybookjs/storybook#15574.

I'm not sure how storybook can fix this. We may need a more robust way to establish the desired story order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
1 participant