npx sb init --builder webpack5
if you get the error Error: Cannot find module 'webpack/lib/util/makeSerializable.js'
after setting up storybook
with above command, check whether you've installed webpack^5.x.x
in dependencies or not.
If webpack^5.x.x
isn't installed, install with npm i -D webpack@^5.x.x
.