-
-
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
Addon-docs: DocsPage for Vue #6663
Comments
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! |
Are props supported for vue, or not? The above checklist says yes. Jacob told me on discord, that for him it works when he installs |
@bodograumann it supports vue props, but not vue events etc. will sort it all out in the coming week. what does |
Ok, then I guess this is a problem with my setup, or a bug. Will try to reproduce on an empty project and possibly create a bug report. As for the conflict, this is a bit of a complex situation. I have my main application with Now, after I installed Anyway, what I now understood is, that I don’t need |
@bodograumann You'll need the loader from addon-vue-info to use the Props feature of Storybook Docs, but you don't need to register the rest of the addon. |
I see. So I guess I need to fix the conflict after all. Do you have any idea, why the This is the error, that I get:
Could a problem be indicated by the fact that |
@bodograumann Is that an MDX file that's getting loaded somehow by that loader? It should only apply to Cc @Aaron-Pool |
@shilman my best guess after perusing things for a few minutes is that the loader for the But that could be way off base, just an initial instinct. |
@shilman I’m not sure how close the styleguidist docs format and MDX are, but it is the former. I have created a sample project where I reproduce the issue: https://github.com/bodograumann/vue-storybook-docs-page-test To narrow it further down, I changed From this perspective it is a problem in |
@elevatebart mind taking a quick look at the repro? Looks like storybook is having a hard time reading |
I can and will do tonite. Which means in 5 hours. |
On a side note, the problem does not seem related to annotations. It looks like reading the docs block is making it hard for the SB loader. Will investigate |
There seem to be a bug in vue-loader |
Thx, the workaround works :-) @elevatebart |
Boo-yah!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.29 containing PR #8567 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Does anyone has a working example with both the title, description, props and events? |
@Znegl are you using 5.3-beta? It's only available there. here's an example: https://github.com/storybookjs/storybook/tree/next/examples/vue-kitchen-sink |
Yup, and i finally found my bug! |
@Znegl Can you show an example of your story and component that is working? I am in the same predicament where I see the example and code but no props or methods. |
@chuckmasucci, have a look here https://github.com/Aaron-Pool/Vue-Cli-Storybook-Docs. Maybe that helps you. @Aaron-Pool posted this in storybookjs/vue-cli-plugin-storybook#73. |
@chuckmasucci Sadly not, since it's a closed source corporate project on a local git server. |
I have released https://github.com/storybookjs/vue-cli-plugin-storybook 1.2.0 which should get DocsPage working for Vue (with and w/o typescript) |
Addon-info replacement for Vue.
The text was updated successfully, but these errors were encountered: