37

I am using Storybook version 3.3.15 on Windows 7 running node version 6.3.1 and npm version 3.10.6.

On running storybook, I see 'No panels Available' message in the bottom of the page where actions panels are rendered. I have imported addon-actions in addons.js: import @storybook/addon-actions/register and the module is also present in node_modules folder. I am not getting any errors regarding this during webpack compliation or in browser console.

How do I make the Action Panel appear?

Note: I cannot update the Node and NPM versions because I am working on a professional level app wherein lots of people are involved and its a very big codebase.

darKnight
  • 5,651
  • 13
  • 47
  • 87

10 Answers10

110

In my case they were simply hidden and in the wrong orientation. Had to use the D and A keyboard shortcuts to make them appear again.

charlax
  • 25,125
  • 19
  • 60
  • 71
55

in my case just hitting d worked

D V Yogesh
  • 3,337
  • 1
  • 28
  • 39
8

For me the whole main menu disappeared at one point. The only thing that helped was running sessionStorage.clear() in the console and then refreshing the page.

Ev Haus
  • 1,578
  • 1
  • 11
  • 23
6

First of all, check if you have the addon panel set to show/hide in the dropdown menu at the top left of the Stoybook UI screen, also check the dropdown item called 'change addons orientation' (mine was changed and was bumped off screen because of screen width).

If that doesn't work, try setting the options in the storybook config.js file:

In the Storybook config.js file you can add an options parameter for some default settings, this includes setting the visibility and position of the addons panel.

import { addParameters } from '@storybook/react';

// settings for storybook - show and position addon panel
addParameters({
  options: {
    // display panel that shows addon configurations
    showPanel: true,
    // where to show the addon panel --- @type {('bottom'|'right')}
    panelPosition: 'bottom',
  }
});
Jonny
  • 1,053
  • 1
  • 13
  • 26
5

In my case I was missing the .storybook/addons.js file. It looks like this became a requirement in a recent version because the actions add-on used to work fine for me initially.

To clarify potential confusion:

As the documentation specifies, you need to have a addons.js file in your hidden .storybook/ directory (most likely at the root of your project) even if all it contains is just this 1 line.

import '@storybook/addon-actions/register';
mirabilos
  • 5,123
  • 2
  • 46
  • 72
Nelu
  • 16,644
  • 10
  • 80
  • 88
5

I Just found out it by trying different keys on my keyboard:

If you press "S" - it switches Sidebar in StoryBook Of and On! Try it!

My Browser: Chrome, Operating system: Mac OS

FRITZ F
  • 81
  • 1
  • 4
2

In Mac I solved it by pressing fn + s.

Manuel Barbo
  • 131
  • 1
  • 3
1

I was having this problem; hitting S would shift my components without showing the sidebar, and even after clearing my localStorage and sessionStorage I could barely see the edge of my sidebar.

Then, I realized that I had zoomed in to see my components more closely, and that the sidebar was hiding/showing, but just off-screen.. I just needed to zoom out. ‍♂️

Sharing here in case anyone makes the same mistake.

Aaron
  • 2,049
  • 4
  • 28
  • 35
1

For me the issue was that I had to switch over to the Canvas tab from Docs. Apparently controls don't render on docs.

Jose Browne
  • 4,482
  • 3
  • 28
  • 29
0

I had a similar problem and installing @storybook/addons (in addition to the steps you mentioned) fixed it.

Run:

npm i -D @storybook/addons
alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46
AlexJeffcott
  • 116
  • 2
  • 5