In production, stories do not appear in export order
See original GitHub issueDescribe the bug In production, stories do not appear in export order. Instead, they are sorted alphabetically.
#15574 describes similar behavior and was closed when a fix was released in v6.14.13 and v6.5.0-alpha.17. I’m still experiencing this problem with Storybook 6.5.0-alpha.45, however.

Thank you in advance for your help!! 😄
To Reproduce
-
Run
yarn storybook
to start Storybook in dev mode. Stories appear in export order (Story C, Story B, Story A). This is the expected behavior. -
Run
yarn build-storybook && npx serve
to start Storybook in production mode. Shows appear in sorted in alphabetical order (Story A, Story B, Story C). This behavior appears to be a bug.
System
OS: macOS 11.6.4
CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Binaries:
Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
Yarn: 3.2.0 - ~/.yarn/bin/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
Browsers:
Chrome: 98.0.4758.109
Firefox: 97.0.1
Safari: 15.3
npmPackages:
@storybook/addon-actions: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/addon-docs: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/addon-essentials: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/addon-interactions: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/addon-links: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/angular: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/builder-webpack5: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/manager-webpack5: ^6.5.0-alpha.45 => 6.5.0-alpha.45
@storybook/testing-library: ^0.0.9 => 0.0.9
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:18 (8 by maintainers)
Top Results From Across the Web
How to troubleshoot storybook not loading stories?
Resave save the story file. It makes the component reappear in side panel, and then you can see the errors ...
Read more >Export Production Order to PDF, some lines missing.
Hi All, -SAP B1- In an attempt to run things a little more straightforward, I was looking at exporting the Production order to...
Read more >Export documents in InDesign - Adobe Support
InDesign exports all stories, linked and embedded graphics, SWF movie files, footnotes, text variables (as text), bulleted and numbered lists, ...
Read more >Common Export Documents - International Trade Administration
Learn which documents are needed for an export shipment. ... are shipper-specific and are not negotiable documents (as opposed to “order” bills of...
Read more >How to write stories - Storybook - JS.ORG
The story file is for development-only, and it won't be included in your production bundle. Button.js | ts | jsx | tsx |...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rdebeasi @himerus I’m seeing an inconsistency between the babel config for angular (broken) vs. react (works). will investigate further. are all the projects you’re seeing this on using Angular? If not, what framework? thanks! 🙏
I’m unable to reopen this issue, so I’d recommend continuing the conversation in #17665, which appears to describe a similar problem. Thanks! 😄