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
For my angular project (Node v20.11.0) I am unable to run storybook-build. I can successfully use yarn storybook and view all my storybook components in the browser but the build always fails.
=> Failed to build the preview
SB_BUILDER-WEBPACK5_0003 (WebpackCompilationError): There were problems when compiling your code with Webpack.
Run Storybook with --debug-webpack for more information.
at ./node_modules/@storybook/builder-webpack5/dist/index.js:1:10937
at ./node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at Cache.shutdown (./node_modules/webpack/lib/Cache.js:150:23)
at ./node_modules/webpack/lib/Compiler.js:1242:15
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at Compiler.close (./node_modules/webpack/lib/Compiler.js:1235:23)
at ./node_modules/@storybook/builder-webpack5/dist/index.js:1:10922
at finalCallback (./node_modules/webpack/lib/Compiler.js:454:32)
at ./node_modules/webpack/lib/Compiler.js:471:13
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :23:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (./node_modules/webpack/lib/Compiler.js:469:21)
at ./node_modules/webpack/lib/Compiler.js:1213:17
at eval (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Broken build, fix the error above.
You may need to refresh the browser.
Describe the bug
For my angular project (Node v20.11.0) I am unable to run storybook-build. I can successfully use yarn storybook and view all my storybook components in the browser but the build always fails.
=> Failed to build the preview
SB_BUILDER-WEBPACK5_0003 (WebpackCompilationError): There were problems when compiling your code with Webpack.
Run Storybook with --debug-webpack for more information.
at ./node_modules/@storybook/builder-webpack5/dist/index.js:1:10937
at ./node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at Cache.shutdown (./node_modules/webpack/lib/Cache.js:150:23)
at ./node_modules/webpack/lib/Compiler.js:1242:15
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at Compiler.close (./node_modules/webpack/lib/Compiler.js:1235:23)
at ./node_modules/@storybook/builder-webpack5/dist/index.js:1:10922
at finalCallback (./node_modules/webpack/lib/Compiler.js:454:32)
at ./node_modules/webpack/lib/Compiler.js:471:13
at Hook.eval [as callAsync] (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :23:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (./node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (./node_modules/webpack/lib/Compiler.js:469:21)
at ./node_modules/webpack/lib/Compiler.js:1213:17
at eval (eval at create (./node_modules/tapable/lib/HookCodeFactory.js:33:10), :13:1)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Broken build, fix the error above.
You may need to refresh the browser.
Im running ng run projctName:build-storybook|
Angular json build-storybook =
To Reproduce
This is a work project so I can't add the repository but Ive added the node version worked on and current storybook versions.
System
Additional context
No response
The text was updated successfully, but these errors were encountered: