You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When adding addon-docs to a Vue component with a render function (and no ) I get the following error: [vue-docgen-loader] failed to parse the component file with docgen-api: Cannot read property 'leadingComments' of null
The 'Docs' tab loads in the browser and shows the component in the iframe but does not show the component description and prop info.
Removing the render function and adding a fixes this.
To Reproduce
Steps to reproduce the behavior:
Add addon-docs to a Vue project
Add a story for a component with a render function
See error
Expected behavior
This should work just like any other component.
If that's not possible, maybe the warning could be better? "addon-docs does not support components with a render function"
@shilman no, I'm fairly confident render functions are known to be working. At least the typical use case. @mattgreenfield any chance you could set up a minimal repro repo for debugging purposes?
Describe the bug
When adding addon-docs to a Vue component with a render function (and no ) I get the following error:
[vue-docgen-loader] failed to parse the component file with docgen-api: Cannot read property 'leadingComments' of null
The 'Docs' tab loads in the browser and shows the component in the iframe but does not show the component description and prop info.
Removing the render function and adding a fixes this.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This should work just like any other component.
If that's not possible, maybe the warning could be better? "addon-docs does not support components with a render function"
Screenshots
System:
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
Binaries:
Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
npm: 6.13.7 - ~/Documents/ui-baseplate/node_modules/.bin/npm
Browsers:
Chrome: 79.0.3945.130
Firefox: 71.0
Safari: 13.0.5
npmPackages:
@storybook/addon-actions: ^5.3.7 => 5.3.10
@storybook/addon-backgrounds: ^5.3.7 => 5.3.10
@storybook/addon-docs: ^5.3.10 => 5.3.10
@storybook/addon-knobs: ^5.3.7 => 5.3.10
@storybook/addon-links: ^5.3.7 => 5.3.10
@storybook/addon-notes: ^5.3.7 => 5.3.10
@storybook/addon-storysource: ^5.3.7 => 5.3.10
@storybook/addon-viewport: ^5.3.7 => 5.3.10
@storybook/addons: ^5.3.7 => 5.3.10
@storybook/source-loader: ^5.3.7 => 5.3.10
@storybook/vue: ^5.3.7 => 5.3.10
The text was updated successfully, but these errors were encountered: