Storybook: Cannot read property 'theme' of undefined

Created on 12 Apr 2020  路  7Comments  路  Source: storybookjs/storybook

TypeError: Cannot read property 'theme' of undefined
at getParameters (http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:162920:63)
at wrapper (http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:160938:49)
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:7719:14
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:7733:26
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:7243:21
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:8545:14
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:8546:16
at withSubscriptionTracking (http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:8574:16)
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:7243:21
at http://localhost:8081/vendors~main.e855c3ad9176593d5b21.bundle.js:8545:14

inactive question / support theming

All 7 comments

@zhangKunUserGit I have the same issue, wonder if you use storybook-readme ?

for me it started happening suddenly (I didn't update any dependencies), error is disappeared if do not use storybook-readme. So I am not quite sure what the issue is, need to look further.

@zhangKunUserGit also as an option, you can lock to storybook version 5.2.8

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

You could try adding an empty options object to addParameters; that worked around it for me. (It's still a bug though.)

addParameters({
  // ... whatever you had before
  options: {}
});

looks like storybook-readme needs to update its dependencies

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rpersaud picture rpersaud  路  3Comments

oriSomething picture oriSomething  路  3Comments

xogeny picture xogeny  路  3Comments

purplecones picture purplecones  路  3Comments

tomitrescak picture tomitrescak  路  3Comments