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

Can not able to start Storybook #1407

Closed
yashwanth2804 opened this issue Dec 27, 2018 · 5 comments
Closed

Can not able to start Storybook #1407

yashwanth2804 opened this issue Dec 27, 2018 · 5 comments
Labels
bug always open for contribution

Comments

@yashwanth2804
Copy link

Describe the bug
Unable to get storybook running, just outputting blank html on localhost:6006

To Reproduce
build and run the storybook

  1. yarn run build-storybook

  2. yarn run storybook

  3. See error

Uncaught TypeError: Object(...) is not a function
    at Object.<anonymous> (core.browser.esm.js:15)
    at __webpack_require__ (bootstrap 1a97092c3a8a7d0c9de4:678)
    at fn (bootstrap 1a97092c3a8a7d0c9de4:88)
    at Object.defineProperty.value (index.js:20)
    at __webpack_require__ (bootstrap 1a97092c3a8a7d0c9de4:678)
    at fn (bootstrap 1a97092c3a8a7d0c9de4:88)
    at Object.module.exports (index.js:44)
    at __webpack_require__ (bootstrap 1a97092c3a8a7d0c9de4:678)
    at fn (bootstrap 1a97092c3a8a7d0c9de4:88)
    at Object.defineProperty.value (manager.js:14)

Expected behavior
working storybook url

Screenshots
image

Desktop (please complete the following information):

  • OS:ubuntu
  • Browser chrome

Additional context

from this link from github issues of stoybook storybook githublink , they suggested to update react version,but i am not sure with the preact.

@nickytonline
Copy link
Contributor

Maybe there were dependencies updated by dependabot that broke Storybook. Not sure. I don't think anyone else has worked in Storybook in the dev.to repo aside from me, so I will have to look into this, but in the meantime, feel free to keep digging.

@maestromac maestromac added the bug always open for contribution label Dec 27, 2018
@nickytonline
Copy link
Contributor

I just looked at this and can replicate your error. It looks like the current version of Storybook isn't backwards compatible with older versions of React, which means Preact as well. I did try upgrading to @storybook/react@4.14, but it creates other errors.

I would suggest, for the time being, downgrading Storybook to the last known working version in the repo. Once we have this tied into CI, in the future, it'll break CI if there are breaking changes in deps, see #338.

@nickytonline
Copy link
Contributor

@maestromac, I can look into this further, because now it's bugging me 😉

@maestromac
Copy link
Contributor

Go ahead @nickytonline 😄

Just tried it, I'm also experiencing this issue.

@maestromac
Copy link
Contributor

Resolved with #1410

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

No branches or pull requests

3 participants