Addon storybook-core-core-server-presets-0 not loaded in CI build, but present in local "production" build #29728
Replies: 2 comments
-
downgrading to and out of the blue we are hit with
which finally critically fails at
I am not sure if #27005 is related or not, but it looks like something broke in the storybook UI build process and I am not even able to reproduce it in my local environment |
Beta Was this translation helpful? Give feedback.
-
This is a better reproduction of our setup, |
Beta Was this translation helpful? Give feedback.
-
We're encountering an issue with our Storybook build in the Jenkins environment. The final
manager-bundle.js
doesn't loadstorybook-core-core-server-presets-0
before other addons, which causes unexpected behavior.Interestingly, the same codebase produces a
manager-bundle.js
that loadsstorybook-core-core-server-presets-0
correctly when run locally or in environments like StackBlitz, as expected.I've been trying to isolate any differences between the Jenkins build and local environments but haven't found anything conclusive. We haven't made any relevant changes that could affect this behavior.
Could anyone point out potential causes or differences that might be influencing this? From what I understand, addon loading should only be controlled via the
main.js
configuration, and themain.js
file is identical between local development and the Jenkins build process.Any insights would be greatly appreciated!
Additional Information
The configuration is equivalent to the setup in this StackBlitz example.
Not loading the addon breaks the portal completely because the addon in question is responsible for correctly initializing the hooks for other addons. As a result, the portal crashes with the following error:
When inspecting the
source -> sb-addons
output from the mounted artifact, the issue is evident:(Addons 4 to 10 are custom addons developed specifically for our portal. However, including or excluding these custom addons doesn't affect the outcome—the
storybook-core-core-server-presets-0
addon still doesn't load correctly in the Jenkins build, even though it works in other environments.)I am currently verifying whether this issue is specific to a Storybook version, this has been observed in version
8.4.5
.I'll post an update once I confirm whether version
8.2.9
(which is the version we were using before encountering this issue) works as expected.Create a reproduction
this is our storybook setup but it can't be reproduced in stackblitz
Beta Was this translation helpful? Give feedback.
All reactions