Skip to content

[Bug]: Error: Couldn't find story matching 'about'. #22474

Open

Description

Describe the bug

If you are on one of the /settings/ pages and reload, this error is displayed in the console:

Error: Couldn't find story matching 'about'.
- Are you sure a story with that id exists?
- Please check your stories field of your main.js config.
- Also check the browser console and terminal for error messages.
    at PreviewWeb.selectSpecifiedStory (runtime.js:89:63)
    at Object.nextFn (runtime.js:85:5556)
    at runtime.js:4:78253
    at Array.forEach (<anonymous>)
    at SynchronousPromise4._runResolutions (runtime.js:4:78194)
    at SynchronousPromise4.then (runtime.js:4:75736)
    at PreviewWeb.initializeWithStoryIndex (runtime.js:85:5445)
    at runtime.js:80:606

The page is still loaded so this is not a blocker.

To Reproduce

  1. Open https://githubda5akq-h1s0--6006--9c984a48.local-credentialless.webcontainer.io/?path=/settings/about
  2. Open dev tools
  3. Refresh the page
  4. See the error

The related project: https://stackblitz.com/edit/github-da5akq

System

No response

Additional context

I think the error comes from here:

this.renderStoryLoadingException(
storySpecifier,
new Error(dedent`
Couldn't find story matching '${storySpecifier}'.
- Are you sure a story with that id exists?
- Please check your stories field of your main.js config.
- Also check the browser console and terminal for error messages.
`)
);

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions