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.

start-storybook seems to run, but then displays "Cannot GET /" in the browser

See original GitHub issue

Describe the bug When I run start-storybook, it seems to work correctly, and prints out this message:

╭───────────────────────────────────────────────────╮
│                                                   │
│   Storybook 6.2.8 started                         │
│   1.63 min for preview                            │
│                                                   │
│    Local:            http://localhost:9001/       │
│    On your network:  http://10.95.72.144:9001/    │
│                                                   │
╰───────────────────────────────────────────────────╯

However, when I open that link in the browser, I get only this:

Cannot GET /

System

Environment Info:

  System:
    OS: Windows 10 10.0.19042
    CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  Binaries:
    Node: 14.15.0 - C:\Program Files\Node.js\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.10.0 - C:\Program Files\Node.js\npm.CMD
  Browsers:
    Chrome: 90.0.4430.72
    Edge: Spartan (44.19041.906.0), Chromium (89.0.774.77)
  npmPackages:
    @storybook/addon-actions: 6.2.8 => 6.2.8
    @storybook/addon-docs: 6.2.8 => 6.2.8
    @storybook/addon-knobs: 6.2.8 => 6.2.8
    @storybook/addons: 6.2.8 => 6.2.8
    @storybook/core: 6.2.8 => 6.2.8
    @storybook/react: 6.2.8 => 6.2.8
    @storybook/theming: 6.2.8 => 6.2.8

Additional context The browser console has only this:

GET http://localhost:9001/ 404 (Not Found)

There’s nothing interesting in the Network tab in devtools and start-storybook itself doesn’t print out any errors. build-storybook works just fine and I can open that in my browser and all the stories load correctly, so the problem here seems specific to start-storybook.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

25reactions
kaiyomacommented, Apr 22, 2021

Ah, I figured this out! Leaving a comment here in case some other poor soul runs into this in the future. If you’ve already tried blowing away node_modules and reinstalling packages, then you may have an issue with your Storybook cache. To fix this, run start-storybook once with the --no-manager-cache flag, and hopefully Storybook will work correctly for you. You only need to use this flag once; after that, the cache should be in a good state. The docs advise against using this flag all the time for performance reasons.

Reference: https://storybook.js.org/docs/react/api/cli-options

4reactions
baticodescommented, Sep 22, 2021

I had the same issue with v6.3.8, but @kaiyoma saved my day 🤗.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "Cannot GET /” when running Storybook
A lot of suggestions recommend removing node_modules and reinstalling. While you can try this, it doesn't always work as sometimes the issue is...
Read more >
How to troubleshoot storybook not loading stories?
Resave save the story file. It makes the component reappear in side panel, and then you can see the errors ...
Read more >
Test runner - Storybook
Storybook test runner turns all of your stories into executable tests. It is powered by Jest and Playwright. ... These tests run in...
Read more >
@storybook/react-native - npm
Start using @storybook/react-native in your project by running `npm ... can make an app that just displays your storybook and then you could ......
Read more >
Storybook in React Native - collective:mind | DEV
storybook '; at the end of App.tsx and run yarn android or yarn ios. ... and to have the commands for the Storybook...
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