Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Storybook with React 14 #2110

Closed
m10l opened this issue Oct 22, 2017 · 3 comments
Closed

Unable to use Storybook with React 14 #2110

m10l opened this issue Oct 22, 2017 · 3 comments

Comments

@m10l
Copy link
Contributor

m10l commented Oct 22, 2017

I'm trying to use the latest release of Storybook with an existing React 14 app. The install and running the start script seems to go as planned, however the Storybook app doesn't start when I visit the URL.

Uncaught TypeError: Super expression must either be null or a function, not undefined
at _inherits (style.js:29)
at style.js:32
at Object.defineProperty.value (style.js:96)
at webpack_require (bootstrap 74fe420b966e93db53f1:678)
at fn (bootstrap 74fe420b966e93db53f1:88)
at Object.defineProperty.value (index.js:15)
at webpack_require (bootstrap 74fe420b966e93db53f1:678)
at fn (bootstrap 74fe420b966e93db53f1:88)
at Object.defineProperty.value (decorators.js:37)
at webpack_require (bootstrap 74fe420b966e93db53f1:678)

The error is thrown by the Radium package.

So, two questions:

  1. What's the earliest React version supported by React Storybook? 15?
  2. Is there anything I can do to work around this issue other than updating our project?
@danielduan
Copy link
Member

I don't see ourselves officially supporting React 14 and we don't really have any regression tests for 14 either.

With that said, it doesn't look like that specific error is a react error.

You could try using the latest version of @kadira/storybook and see if it works for you?

@m10l
Copy link
Contributor Author

m10l commented Oct 25, 2017

I ended up upgrading to React 15 in the end. I was pretty surprised by how little effort it took. If I'd have known I don't think I'd have bothered posting an issue, so sorry for cluttering up the issues!

@danielduan
Copy link
Member

No worries, gonna close this issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants