Storybook: Warnings about missing `selectedKind` and `selectedStory`

Created on 3 Aug 2017  路  6Comments  路  Source: storybookjs/storybook

Steps to reproduce:

  1. Go through installation guide (https://storybook.js.org/basics/slow-start-guide/)
  2. Open http://localhost:9001/ (without query string!)
  3. Open console

Result:
screen shot 2017-08-03 at 21 30 48

Expected result: clean console.

Additional information:
These warnings don't break the app, but add some extra noise, that sometimes confuses.
Apparently the problem is here: https://github.com/storybooks/storybook/blob/a9944e1533de79ce4a1a2fd8d2b25aa450998147/app/react/src/client/preview/init.js#L7
Probably it's not a good idea to run init function before stories had been added, or if it's an acceptable case, then selectedKind and selectedStory props of Stories component should become optional.

bug good first issue help wanted

Most helpful comment

Cool, I'll check it out and try to make fix

All 6 comments

I have the same issue.
Prev version (no issues) : 3.1.7
Actualy version (with issue): 3.2.3

Looks like we just should select the first story of the first kind by default. Feel free to file a PR

Yup, seeing this error too in Storybook 3.2.3. Also seeing an error about the prop-types package:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Is the issue still open? I'd like to take a shot at this one.

I just ran into it this weekend after upgrading to the newest Storybook (and doing a clean install), so I believe it's still an issue.

Cool, I'll check it out and try to make fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZigGreen picture ZigGreen  路  3Comments

zvictor picture zvictor  路  3Comments

sakulstra picture sakulstra  路  3Comments

xogeny picture xogeny  路  3Comments

tlrobinson picture tlrobinson  路  3Comments