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.

No stories showing up in preview

See original GitHub issue

Describe the bug I’ve updated from React 15 to 16, and Storybook 3 to 4 and I’m getting no stories load, only the “No Preview”. There are no errors in the console or anything that would help me debug why its off.

To Reproduce Steps to reproduce the behavior: Followed instructions for setting up Storybook from scratch and not seeing any stories.

Expected behavior Expect an error if something is wrong or a story to load.

Screenshots image

Code snippets

import { configure } from '@storybook/react';

// Legion
import '../../../../dist/styles.css';

const loadStories = () => {
    const req = require.context('../../../../src/atoms/badge', true, /__story\.js$/);
    req.keys().forEach(filename => req(filename));
};

configure(loadStories, module);

System:

  • OS: MacOS High Sierra
  • Device: MacBook Pro 2016
  • Browser: Chrome, Safari
  • Framework: React
  • Addons: I’ve removed any and all addons.
  • Version: 4.0.8

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
sag1vcommented, Jul 7, 2020

Got the same problem, shame this got closed though

3reactions
hamstucommented, Dec 6, 2018

Same thing is happening to me, I also added babel-plugin-require-context-hook but I see no stories and get this error in the console:

Uncaught ReferenceError: __requireContext is not defined
    at Module.<anonymous> (config.js:4)
    at Module../.storybook/config.js (config.js:6)
    at __webpack_require__ (bootstrap:724)
    at fn (bootstrap:101)
    at Object.0 (browser.js:67)
    at __webpack_require__ (bootstrap:724)
    at bootstrap:791
    at bootstrap:791

Were you able to look into this anymore @shilman?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to See Instagram Story Previews: 3 Proven Methods
1 How to see previews of Instagram stories. 1.1 Blockade trick; 1.2 Airplane mode; 1.3 Partially swipe the feed · 2 Applications to...
Read more >
How To Watch Someone's Instagram Stories Without Them ...
1. Click and watch the Instagram Story of the person before or after the story you want to secretly view in the queue....
Read more >
How to Fix Instagram Stories Not Showing Up - Followchain
The first solution to fix Instagram stories from not showing up is to set your date and time to automatic.
Read more >
How to See Instagram Story Preview - 4 FoolProof Hacks
Open your Instagram app and on the stories bar, don't tap on the story you want to view, instead, tap on the story...
Read more >
how to see preview of instagram story? - [Answer] 2022
To preview an Instagram story, just swipe up on the main screen. This will show you a row of thumbnails of the people...
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