-
-
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
Addons seems to not respect import order #9819
Comments
Mildly helpful (I started to investigate this but have run out of time for now):
loadPreset() calls
my addons array:
So this at least points to where/why the issue is happening |
@matt-shine Thanks so much for tracking that down. Unfortunately it's not a straightforward fix. I'll see what @ndelangen and I can come up with there. |
I see.. Will give this some thought as well. |
We should likely extend the sorting I added so the order is correct. (according to original |
So there's 2 methods for adding managerEntries:
So if you have:
the resulting load order of addons is:
|
Here's the current code: storybook/lib/core/src/server/presets.js Lines 151 to 164 in 65ab7e2
We need to ensure the merging of |
YES! a solution at last, I think. |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.30 containing PR #11178 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
Sorry if I'm missed something, but can it be fixed also for version |
@AleshaOleg unfortunately it's a significant change. 6.0 will be in RC in a few days, and i'd recommend upgrading once that lands |
@shilman got it. thanks for the answer! |
Describe the bug
Addons seems to not respect import order as stated in the doc
Expected behavior
When I define addons, I want addons to respect this order (knobs, jest, a11y)
Screenshots
System:
Additional context
This is a VueJS storybook
The text was updated successfully, but these errors were encountered: