Closed upieez closed 2 years ago
@upieez
I suspect it could be related to
webpackFinal
? I added it to my configuration because I am using absolute paths when I am importing my file.
If you comment-out customization lines and html-webpack-plugin
start working fine, it would be webpackFinal
(be aware of Storybook caches). If not, it's a version mismatching around the html-webpack-plugin
: confused package manager pulling in/resolving to weird versions or some package's dependencies conflicting with yours. From my experience, the latter is more likely to happen.
Things like yarn info html-webpack-plugin -A
or npm ls html-webpack-plugin
(or related packages) help debug this kind of problem.
I'll close for now as this addon does not have webpack-related dependencies or modify webpack config^0. If there is something this addon could/should do, please provide a more detailed reproduction step or repository and re-open.
Affected design types
Describe the bug
So I'm using Next.js
v12.0.8
and Reactv17.0.2
and when I addstorybook-addon-designs
to my config file inmain.js
it throws me a webpack error. I did not use the features from the addon but only added it to my configuration inmain.js
My storybook is currently using Webpack v4 and if I removed
storybook-addon-designs
from mymain.js
, it builds successfullyBelow is my storybook
main.js
configuration when the build errorI suspect it could be related to
webpackFinal
? I added it to my configuration because I am using absolute paths when I am importing my file.Here's the error log when I try to build storybook
How to reproduce the bug?
@storybook/addon-essentials
and@storybook/addon-links
build-storybook
Expected behaviour
Build successfully without any error
Environment
Affected versions
6.3.1
Storybook versions
6.5.10