-
-
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
[vue] Remove add with JSX from CLI default examples #2727
Comments
I am also having this problem when trying to set up story book after running vue-cli. |
I was also having same problem but finally I found the curlprit:
The render function is the issue here. Just remove this code and everything will be fine. |
@ri8ika great! it works |
This worked for me as well. Thank you for sharing. |
@ri8ika there another way to VueJS and Storybook together accept JSX or if not, there an another way to set template prop from a included file?! It's horrible and unuseful set and manage html as string in template prop. |
As other workaround: .add('with JSX', () => ({
components: { MyButton },
render(h) {
return <my-button onClick={this.action}>With JSX</my-button>;
},
methods: { action: linkTo('clicked') },
})) I seem @nickmessing |
Amazing @kazupon !! Thank you! |
@ri8ika thx |
Seems to be fixed in our example stories |
1、environment
2、step
3、Issue
when i do the step 5, some error happened from webpack :
and when i access http://localhost:6006/ some error like :
how to solve it ?
The text was updated successfully, but these errors were encountered: