vue-styleguidist: Styleguide does not work with `sections`
Current behavior
To reproduce
I am using this configuration:
'components': './client/components/**/*.vue',
Change it to this configuration:
'sections': [{
'name': 'Atoms',
'sections': [
{ 'components': './client/components/atoms/TButton.vue' },
{ 'components': './client/components/atoms/TInput.vue' }
],
}, {
'name': 'Molecules',
'components': [],
}, {
'name': 'Organisms',
'components': [
'./client/components/atoms/TCollapsableMenu.vue',
],
}],
And now all components do not show up. Only white screen is shown.
Expected behavior
I expect it to work the same way.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 22 (14 by maintainers)
Commits related to this issue
- test: try reproducing #405 issue — committed to vue-styleguidist/vue-styleguidist by elevatebart 5 years ago
- fix: register all cmpnts ins/f only first section closes #405 — committed to vue-styleguidist/vue-styleguidist by elevatebart 5 years ago
There was definitely a big issue here. will be fixed in 3.13.3, VSG was only picking up the first section registered.
Sorry about that
Steps to reproduce:
Open
http://localhost:6060/
in your browser, open the console and observe error messages like:Also navigate to the “Placeholder” in the styleguide and observe how the component isn’t being rendered in the styleguide.
Now stop the styleguide server, run:
Open
http://localhost:6060/
in your browser again. Observe how the error messages are gone and the “Placeholder” component gets rendered correctly.I hope that helps narrowing down the issue. It seems to only happen when sections are being used. Without sections, the error didn’t show even with the latest versions.