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
Since updating to 5.3.1, stories are not appearing in the manager preview panel on the left.
I believe this is to do with how they are being exported, although the same method works in 5.2.8.
import React from 'react';
import { action } from '@storybook/addon-actions';
import Button from './button';
import { withKnobs, text } from '@storybook/addon-knobs/react';
export default {
title: 'Foundation/Button',
component: Button,
decorators: [withKnobs],
}
const Basic = () => <Button className={text("ClassName-Basic", "button basic")} id={text("ID", "Hello-id-basic")} content={text('Content', 'some text for Basic button here')}/>;
const Primary = () => <Button className={text("ClassName-Primary", "button primary")} id={text("ID", "Hello-id-primary")} content={text('Content', 'some text for Primary button here')}/>;
const Secondary = () => <Button className={text("ClassName-Secondary", "button secondary")} id={text("ID", "Hello-id-secondary")} content={text('Content', 'some text for Secondary button here')}/>;
const Disabled = () => <Button className={text("ClassName-Disabled", "button disabled")} id={text("ID", "Hello-id-disabled")} content={text('Content', 'some text for Disabled button here')}/>;
const All = () => <div><Basic /><br /><Primary /><br /><Secondary /><br /><Disabled /></div>;
export {Basic, Primary, Secondary, Disabled, All}; // export all components individually, and then export them all together
Expected behavior
I expect this to produce five previews in the manage preview panel on the left:
For each of the Basic, Primary, Secondary & Disabled named components, I would expect them to show up in their individual previews.
For the component named 'All'. I would expect this to show up in its own preview, rendering all the previous named components together. This is how it behaved in 5.2.8
@shilman - I have resolved this to an extent - when I remove the Docs addon the stories all appear - Put the Docs addon back in again and they disappear
Describe the bug
Since updating to 5.3.1, stories are not appearing in the manager preview panel on the left.
I believe this is to do with how they are being exported, although the same method works in 5.2.8.
To Reproduce
Create file named button.js and add:
Create file named button.stories.js and add:
Expected behavior
I expect this to produce five previews in the manage preview panel on the left:
For each of the Basic, Primary, Secondary & Disabled named components, I would expect them to show up in their individual previews.
For the component named 'All'. I would expect this to show up in its own preview, rendering all the previous named components together. This is how it behaved in 5.2.8
System:
Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Binaries:
Node: 12.11.1 - ~/.nvm/versions/node/v12.11.1/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.11.3 - ~/.nvm/versions/node/v12.11.1/bin/npm
Browsers:
Chrome: 79.0.3945.117
Firefox: 60.7.2
Safari: 12.1.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: