Closed throrin19 closed 5 years ago
I fix my problem for props part. But I can't find how to show events and slots informations.
For Props, I pass this config in info
bloc because my components are registered globally :
{
info : {
components : {
MyComponent, // I import that in my story page
}
},
}
@throrin19
The only information I have in that part is the source code of my story
It seems that the addon fails to determine which components to show props/events/slots. Parsing and lookup function may have an issue.
But I can't find how to show events and slots informations.
When it shows only props tables, it means our custom loader doesn't work.
I think Storybook could not find your webpack config: it should be webpack.config.js
, not webpack.config.json
.
When it shows only props tables, it means our custom loader doesn't work. I think Storybook could not find your webpack config: it should be webpack.config.js, not webpack.config.json.
Sorry, It's webpack.config.js
I just make a mistake in my first issue message.
Sorry, It's webpack.config.js I just make a mistake in my first issue message.
Okay, then, it seems that vue-docgen-api failed to parse your component. For this thing, I've filed #85.
@throrin19 I've just released v1.1.0 which emits warnings when vue-docgen-api fails to parse. Please try it then check if there're any warnings.
It looks like vue-docgen-api failed to parse at below line because of custom alias.
import langManager from 'libs/i18n';
Describe the bug
The Info(Vue) tab in story book does not show the props part. The only information I have in that part is the source code of my story
To Reproduce Steps to reproduce the behavior:
Configure
webpack.config.json
like that :addons.js
:My Story :
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Versions
storybook-addon-vue-info
: 1.0.1@storybook/vue
: 5.0.5