-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular 12.1 & Storybook 6.3 - Storybook build process never complete #21261
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
Comments
We are facing same issue |
I did look into this briefly, it appears that when using Storybook the Webpack compiler is not shutting down properly and the shutdown event hook is never called, which causes the workers not to terminate. At the point, I think Storybook team are in a better position to investigate and determine why this is happening, since they are more familiar of how they are configuring the build and all the plugins/loaders being used. It's important to mentioned that Storybook is also using private APIs to get and alter the Webpack configuration, these APIs are not meant to be used externally. |
The fact that the build never completes, is a side-effect of Webpack not triggering the shutdown event/cycle, while we can do a workaround for this, it is far from ideal as not shutting down Webpack properly might have other undefined behaviour. herefore, the best action here is for the Storybook team to determine why Webpack is not shutting down properly. |
@alan-agius4 we'll look into this and see if there's something missing on the storybook side |
Thanks guys ! |
From an initial review of the storybook code, it appears that the storybook Webpack 5 integration code does not call the Webpack 5 compiler's |
Closing this is not actionable by the Angular team. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Is this a regression?
Yes, was working fine until @angular/[email protected]
Description
We have an Angular project (v12.1), and we are using Storybook for our design system (v6.3). When building Storybook, the process produce an output, but never close, breaking our CI.
🔬 Minimal Reproduction
🔥 Exception or Error
There's no errors
🌍 Your Environment
Anything else relevant?
There is an open issue in Storybook repo : #15227 where someone put up a reproduction repo : Storybook timeout repro
Investigations appears to leads to a change in this PR : 21045
There is a workaround, a bit dirty though.
The text was updated successfully, but these errors were encountered: