Skip to content

🐛 [BUG] - Couldn't find story matching 'drafts-components-skeletontext--default' #5399

@1chooo

Description

@1chooo

Describe the bug

When I visit https://primer.style/components/skeleton-text/react/draft, there is the error messages as below:

Couldn't find story matching 'drafts-components-skeletontext--default'.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the [Decorators documentation](https://storybook.js.org/docs/react/writing-stories/decorators).
Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring [Webpack](https://storybook.js.org/docs/builders/webpack) or [Vite](https://storybook.js.org/docs/builders/vite) with Storybook.
Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the [Environment Variables documentation](https://storybook.js.org/docs/configure/environment-variables).
- 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.

Also, after clicking View in Storybook, we could meet the error message.

Reproduction steps

1. Go to https://primer.style/components/skeleton-text/
2. Click on 'react'
3. Scroll down to 'Example'
4. See error

Expected behavior

1. Go to https://primer.style/components/skeleton-text/
2. Click on 'react'
3. Scroll down to 'Example'
4. See the demo of skeleton-text

Screenshots

Error in components/skeleton-text/react/draft Error in Storybook

Browsers

Chrome

OS

Mac

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions