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
Angular: stories are not sorted by their export #18659
Comments
Hi @elenagarrone would you mind share how to reproduce de error please, I've tried but only I'm able to run the Angular default screen. |
@EdgarPsda apologies, it's not |
We are having the same issue with angular v14.2 and storybook v6.5.9 |
Same issue here with angular v15 and storybook v6.5.13 (with builder-webpack5) |
Here is my workaround until it's fixed. I add a In my *.stories.ts:
Then in my .storybook/preview.ts
It's not the cleanest but it works and you can order your stories any way you want without worrying about export or alphabetical order. |
Hello @shilman @JReinhold, we are facing the same issue with Angular and would need a workaround as we cannot upgrade Storybook to v7 at the moment. I tried to replace I've come up with a solution to this issue by adding the export const __namedExportsOrder = [
'First Story',
'Second Story',
]; |
Describe the bug
Stories are not sorted according to their export instead, they are sorted alphabetically.:
while it should be:
To Reproduce
Code to reproduce here: https://github.com/elenagarrone/sb-bug-ng
System
Additional context
Using Angular
14.0.0
(reproduced also with12.2.17
) and Webpack5
.This same issue was fixed for React: #15574
The text was updated successfully, but these errors were encountered: