question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook 5.1.0-beta.1 is not showing all stories and has a TypeError in the console

See original GitHub issue

Describe the bug After upgrading from 5.1.0-alpha.39 to 5.1.0-beta.1, most of my stories are missing from the sidebar. There’s also a JavaScript error in the console:

TypeError: Cannot read property 'slice' of undefined
    at Object.<anonymous> (vendors~main.1802bec481c24205c53d.bundle.js:380134)
    at Object../node_modules/readable-stream/lib/_stream_writable.js (vendors~main.1802bec481c24205c53d.bundle.js:380765)
    at __webpack_require__ (runtime~main.1802bec481c24205c53d.bundle.js:787)
    at fn (runtime~main.1802bec481c24205c53d.bundle.js:150)
    at Object../node_modules/readable-stream/readable-browser.js (vendors~main.1802bec481c24205c53d.bundle.js:381034)
    at __webpack_require__ (runtime~main.1802bec481c24205c53d.bundle.js:787)
    at fn (runtime~main.1802bec481c24205c53d.bundle.js:150)
    at Object../node_modules/stream-browserify/index.js (vendors~main.1802bec481c24205c53d.bundle.js:395418)
    at __webpack_require__ (runtime~main.1802bec481c24205c53d.bundle.js:787)
    at fn (runtime~main.1802bec481c24205c53d.bundle.js:150)

Here’s the line in question (in Chrome devtools):

var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;

System:

  • OS: Windows 10
  • Browser: Chrome 74
  • Framework: React
  • Version: 5.1.0-beta.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
kaiyomacommented, Jun 3, 2019

@shilman Yup, fixed our issue too. Thanks!

2reactions
jmcpeakcommented, Jun 3, 2019

Attempted to fix this in #6946 which was released in https://github.com/storybookjs/storybook/releases/tag/v5.1.0-rc.4

@kaiyoma @djMax can you try it out and let me know if that worked?

I had the same issue - v5.1.0-rc.4 resolves the issue for me - thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot storybook not loading stories?
Check the console of the chrome window running localhost. You should see errors there. I had a component not showing ...
Read more >
storybook/addon-docs - npm
DocsPage is a zero-config aggregation of your component stories, text descriptions, docgen comments, props tables, and code examples into clean, ...
Read more >
storybookjs/storybook (Raised $170.00) - Issuehunt
Props not showing up in docs when slot with same name is defined (Vue). Unfunded#12224created bypuyt ... Storybook 6.x Scripting: Get URLs of...
Read more >
Using Storybook with Vue js - Auth0
Learn how to build a component library with Vue and Storybook to create ... When loadStories is run, Storybook will import all the...
Read more >
@storybook/react: Versions | Openbase
Build: ui/.storybook should not import from dist #20284 ... 7.0.0-beta.1 ... Beta means that we don't have any more major changes on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found