Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Breaks built-in storybook addons #12

Closed
itsravenous opened this issue Jan 2, 2017 · 3 comments
Closed

Breaks built-in storybook addons #12

itsravenous opened this issue Jan 2, 2017 · 3 comments

Comments

@itsravenous
Copy link

Installing this addon somehow disables the linkTo and actions addons which come with storybook.

Steps to reproduce:

  1. create-react-app my-app && cd my-app && getstorybook && yarn add @kadira/storybook-addon-options && yarn storybook
  2. The action logger should be visible in the bottom panel and be showing logs for clicks on the button.
  3. yarn add @kadira/storybook-addon-options
  4. Add the .storybook/addons.js file and content to .storybook/config.js as listed in this addon's README, tweaking the config to show at least the bottom panel.
  5. The bottom panel now just shows a message "No panels available". The link from the Welcome story to the Button story now no longer works either.
@arunoda
Copy link
Contributor

arunoda commented Jan 3, 2017

@mnmtanish could you have a look at this?

@dptoot
Copy link

dptoot commented Jan 23, 2017

Without delving too much into the source code, it looks as though the addition of the addons.js file to the config directory may wipe the default registered addons.

@itsravenous
I was able to resolve this by adding the default addons, from the pre-installed modules, in the addons.js file.

addons.js

import '@kadira/storybook-addon-options/register';
import '@kadira/storybook-addon-links/register';
import '@kadira/storybook-addon-actions/register';

@itsravenous
Copy link
Author

Confirmed, thanks! See also react-storybook#192

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants