Props table is broken when using more exports in file (vue)
See original GitHub issueDescribe the bug I’m working with VUE. I have a component that in addition to its default export (as required by SFC) it has some states that are exported for use for others that use this component. In this component stories are working fine, but the props table doesn’t show.
Expected behavior I expect to see the props table in every component
Screenshots when using exports: without exports:
Code snippets
<template>
<div>
template
</div>
</template>
<script>
export const STATES = {
on: 'on',
off: 'off'
}
export defualt {
}
System:
Environment Info:
System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Binaries:
Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
Yarn: 1.21.1 - ~/.yarn/bin/yarn
npm: 6.13.1 - ~/.nvm/versions/node/v10.15.0/bin/npm
Browsers:
Chrome: 79.0.3945.117
Firefox: 70.0.1
Safari: 13.0.4
npmPackages:
@storybook/addon-actions: ^5.3.4 => 5.3.4
@storybook/addon-docs: ^5.3.0-rc.14 => 5.3.0-rc.14
@storybook/addon-links: ^5.3.4 => 5.3.4
@storybook/addons: ^5.3.4 => 5.3.4
@storybook/vue: ^5.3.4 => 5.3.4
also using rails webpacker
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Vue js Avoid mutating a prop directly since the value will be ...
I check on vue devtools, on table-custom-action component i see query props but is empty query:"" . I know about emiting event with...
Read more >Common mistakes to avoid while working with Vue.js
The default build exported by the NPM package is the runtime-only build. It doesn't bring the template compiler. For some background information ...
Read more >data() not working - Laracasts
Hey guys, I am exhausted of trying to make even simplest vue app working. ... If you use module.exports = { } in...
Read more >Chapter 3: Using Vue's strengths - Accessible Vue
In the following, we will start to think about strategies of using the framework's strengths for building inclusive apps. #Conveying context with props....
Read more >Pagination | Components - BootstrapVue
All *-text props are text-only and strip out HTML but you can use their ... no more than 3 page number buttons are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can now parse an SFC including named exports with
vue-docgen-api: >=4.6.0
.No 👌 I’ll check source codes of vue-docgen-api and vue-docgen-loader, soon.