我试图创建一个包含主题的故事书文件夹的文档。但是得到这个错误:
Uncaught Error: Unable to render story ... as the component annotation is missing from the default exportMigration.stories.mdx
import { Meta, Story} from '@storybook/addon-docs';
<Meta title="Documentation / Visual Update Migration" />
# Migrating
<Story name="Card" />
## Card
- Text
- Text
<Story name="Container" />
## Container
- Text
- Text所有这些原因的故事标记,但如果我删除它们,将不会有参考在侧边栏
预期:

因此,路径和侧栏正确加载,但单击时的内容不会加载错误。
Uncaught Error: Unable to render story documentation-visual-update-migration--card as the component annotation is missing from the default export ...
Uncaught Error: Unable to render story documentation-visual-update-migration--container as the component annotation is missing from the default export ...加号
2 The above error occurred in the <storyFn> component ...和
POST http://localhost:6006/runtime-error 404 (Not Found)
POST http://localhost:6006/runtime-error 404 (Not Found)发布于 2022-07-22 08:29:49
问题出在<Story ... />。Story想要里面的东西。
Fix: <Story ...>{''}</Story>
https://stackoverflow.com/questions/73065537
复制相似问题