-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook and @vue/cli 3.0 #3267
Comments
Bugit looks like the babel version used by the vue/cli 3 is conflicting with the expected version by storybook and when trying to run storybook it throws this error:
Steps to reproduceInit a project using vue cli 3(instalition guide in the link) Add storybook to the project Try to run storybook Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
|
sounds like this might be related to #3335 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I confirm currently storybook still doesn't work with @vue/cli 3 beta.11. It will throw:
|
Hey guys, I have identified the problem: @vue/cli v3 beta.11 uses According to https://vue-loader.vuejs.org/migrating.html#notable-breaking-changes, just add a const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = (baseConfig, env, defaultConfig) => {
defaultConfig.plugins.push(new VueLoaderPlugin())
return defaultConfig;
}; This would do the trick. |
@beeplin wow.....thanks, it's work |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
this minimalist config work for me :
|
The problem is with getting Storybook to work with Vue CLI specifically, not just Vue. |
My storybook plugin for vue-cli (https://github.com/pksunkara/vue-cli-plugin-storybook) has been working since last week. I think we can close this issue. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
slow way: https://storybook.js.org/basics/guide-vue/ AND fix bug: storybookjs/storybook#3267 (comment) Then should be good after some cleanup
In my case all I had to do was to run We're using |
Bug
I've tried to add Storybook to a project which was set-up with
@vue/cli
3.0. Adding storybook withgetStorybook
works fine, but when trying to run it asks forbabel-core
, wether@babel/core
is installed or not. I figure that it could work with a custom Webpack config in./storybook
but this overrides the Vue config completely.Steps to reproduce
Install a new project with
@vue/cli
(3.x), add storybook and try to run it.Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
-
@vue/cli
The text was updated successfully, but these errors were encountered: