Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install Storybook along with Vue Cli 3?

I can't install Storybook along with a Vue Cli 3 project. When trying to npm run storybook I get the error:

not find module '@storybook/vue/dist/server/config/defaults/webpack.config.js'

This happens -I think- because webpack is now an internal part of Vue Cli since version 3.

I've tried several tutorials and configurations like this, this and this, with the same or similar errors related Webpack.

How can I run Storybook along with Vue Cli 3?

like image 492
adelriosantiago Avatar asked Jan 27 '26 10:01

adelriosantiago


1 Answers

You can just run vue add storybook

https://github.com/storybooks/vue-cli-plugin-storybook

like image 109
Morty Choi Avatar answered Jan 28 '26 22:01

Morty Choi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!