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
Storybook loads all components one by one (not all of them at once) and shows only the last one.
To Reproduce
Steps to reproduce the behavior:
Create components and stories for them.
Load them into Storybook, everything works fine.
Export the components with their stories files to bit.dev
Install the components from bit.dev to another project.
Load them into Storybook (see the code snippet).
The components are loaded one by one, and only the last component is shown.
In the console (when verbose is checked):
7.1. setStories is run for each component (not once for all components)
7.2. storyMissing is thrown for all components except the last one: (18) message arrived at manager storyMissing undefined
Expected behavior
All components to be loaded and shown together.
Code snippets
config.ts:
import { configure } from '@storybook/react'; const req = require.context('@bit/', true, /stories\.tsx$/); function loadStories() { req.keys().forEach(req); } configure(loadStories, module);
System:
OS: MacOS Mojave 10.14.5
Device: Macbook Pro 2017
Browser: Chrome 75.0.3770.142
Framework: React 16.8.6
Version: 5.1.9 (tried @next as well)
The text was updated successfully, but these errors were encountered:
siffash
changed the title
Only last stories are shown, storyMissing is thrown for the rest
Only last story is shown, storyMissing is thrown for the rest
Jul 24, 2019
siffash
changed the title
Only last story is shown, storyMissing is thrown for the rest
Only last component is shown, storyMissing is thrown for the rest
Jul 24, 2019
Describe the bug
Storybook loads all components one by one (not all of them at once) and shows only the last one.
To Reproduce
Steps to reproduce the behavior:
7.1. setStories is run for each component (not once for all components)
7.2. storyMissing is thrown for all components except the last one:
(18) message arrived at manager storyMissing undefined
Expected behavior
All components to be loaded and shown together.
Code snippets
config.ts:
System:
The text was updated successfully, but these errors were encountered: