Skip to content
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

BUG: vue-component-meta not running correctly #29494

Open
hinogi opened this issue Oct 30, 2024 · 8 comments
Open

BUG: vue-component-meta not running correctly #29494

hinogi opened this issue Oct 30, 2024 · 8 comments

Comments

@hinogi
Copy link

hinogi commented Oct 30, 2024

it seems that enforce: 'post' is missing in the plugin configuration. Otherwise there will be no result.

name: 'storybook:vue-component-meta-plugin',

@kasperpeulen
Copy link
Contributor

@hinogi Could you provide more context here, I'm not following.

cc @larsrickert

@hinogi
Copy link
Author

hinogi commented Dec 4, 2024

the plugin is added without an enforce and will be executed in the wrong place so the result gets overwritten by other post actions. This results in autodoc not getting any metadata so the autodocs will be pretty empty and there will be no categories for props, emits and so on because there is no meta data.

@hinogi
Copy link
Author

hinogi commented Jan 9, 2025

#28817 this could also be a reference

@craigrileyuk
Copy link

Had the same issue. No data whatsoever from vue-component-meta was being received by my autodocs.

Ended up removing it and going with the default docgen.

@hinogi
Copy link
Author

hinogi commented Jan 22, 2025

Had the same issue. No data whatsoever from vue-component-meta was being received by my autodocs.

Ended up removing it and going with the default docgen.

Well there is a workaround

@kasperpeulen
Copy link
Contributor

@yannbf Did you refactor this possibly? Otherwise maybe @larsrickert has a clue here.

@larsrickert
Copy link
Contributor

@kasperpeulen For my tests it works fine, so it might be a setup issue.

@hinogi Could you please create a minimal reproduction example? E.g. with stackblitz

@hinogi
Copy link
Author

hinogi commented Jan 28, 2025

@kasperpeulen For my tests it works fine, so it might be a setup issue.

@hinogi Could you please create a minimal reproduction example? E.g. with stackblitz

https://stackblitz.com/edit/github-vvhzfkqd?file=.storybook%2Fmain.ts I hope that works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants