DEV Community

SeongKuk Han
SeongKuk Han

Posted on

(Storybook Webpack 5) Error: Cannot find module 'webpack/lib/util/makeSerializable.js'

npx sb init --builder webpack5
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (8)

Collapse
 
hunterjsbit profile image
Son Goku

Thank you very much, it worked :)

Collapse
 
lico profile image
SeongKuk Han

Good to hear :)

Collapse
 
hayatibis profile image
Hayati

It worked, thanks

Collapse
 
lico profile image
SeongKuk Han

I'm glad it helped :)

Collapse
 
indipirate profile image
Nayeem Ahmed

Very helpful

Collapse
 
lico profile image
SeongKuk Han

I appriciate it

Collapse
 
hkai1221 profile image
斜凯

It worked 🎉

Collapse
 
lico profile image
SeongKuk Han

That's good!😃