You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storybook 6.3.4 does not work with Angular 12.1. Build succeeds but shows 99% done.
Storybook UI renders in Browser but stories fail to load.
Build stuck at 99%
<i> [webpack-dev-middleware] wait until bundle finished: /runtime~main.manager.bundle.js
<i> [webpack-dev-middleware] wait until bundle finished: /vendors-node_modules_storybook_addon-a11y_dist_esm_register_js-node_modules_storybook_addon-a-e6bef3.manager.bundle.js
<i> [webpack-dev-middleware] wait until bundle finished: /main.manager.bundle.js
99% done plugins webpack-hot-middlewarewebpack built preview 43c58eb64f10364901ac in 1661ms
Error in Storybook UI
Type AccordionModule does not have 'ɵmod' property.
Error: Type AccordionModule does not have 'ɵmod' property.
at getNgModuleDef (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:44508:15)
at recurse (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:68665:21)
at recurse (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:68676:17)
at registerNgModuleType (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:68661:5)
at new NgModuleFactory$1 (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:68775:13)
at compileNgModuleFactory__POST_R3__ (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:72468:27)
at PlatformRef.bootstrapModule (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:72714:16)
at CanvasRenderer.<anonymous> (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:108794:60)
at step (http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:108708:23)
at Object.next #(http://localhost:6007/vendors-node_modules_angular_cdk_fesm2015_a11y_js-node_modules_angular_common_fesm2015_http_j-581d82.iframe.bundle.js:108689:53)
To Reproduce
Upgrade to Angular 12 from Angular 11
Upgrade Storybook from 6.2 to 6.3.4 using the npx sb upgrade command
Manually upgrade @storybook/builder-webpack5 and @storybook/manager-webpack5 packages to 6.3.4
I can verify that this issue is reproducible with a fresh new setup and install of Storybook 6.3 with a fresh new Angular 12 project.
Steps to reproduce:
Create an Angular 12 project with Angular CLI
Create a test library using ng generate library my-lib
Disable Ivy for the library by adding "enableIvy": false to tsconfig.lib.prod.json
Install Storybook using npx sb init
Create a story for this newly created library
Build library in production
Run Storybook
See error when you open the story
The issue doesn't seem to appear when Ivy is enabled (Storybook build still stuck at 99% though) . We would like to build in the legacy compiler because we distribute the code as NPM package.
The text was updated successfully, but these errors were encountered:
Storybook 6.3.4 does not work with Angular 12.1. Build succeeds but shows 99% done.
Storybook UI renders in Browser but stories fail to load.
Build stuck at 99%
Error in Storybook UI
To Reproduce
npx sb upgrade
command@storybook/builder-webpack5
and@storybook/manager-webpack5
packages to 6.3.4System
Additional context
Storybook with builder-webpac5 complains about conflicting values in DefinePlugin and not redefine custom variables #14257
Screenshots:
Build stuck at 99%
Error in Storybook UI
Update:
I can verify that this issue is reproducible with a fresh new setup and install of Storybook 6.3 with a fresh new Angular 12 project.
Steps to reproduce:
ng generate library my-lib
"enableIvy": false
totsconfig.lib.prod.json
npx sb init
The issue doesn't seem to appear when Ivy is enabled (Storybook build still stuck at 99% though) . We would like to build in the legacy compiler because we distribute the code as NPM package.
The text was updated successfully, but these errors were encountered: