您好,根据本指南, 我在 .storybook/preview.js 上添加了此代码
configure(require.context("../../", true, /\.stories\.tsx?$/), module);
它工作正常,部分原因是我在控制台中有错误:
Component is part of the declarations of 2 modules: StorybookModule and StorybookModule! Please consider moving to a higher module that imports StorybookModule and StorybookModule. You can also create a new NgModule that exports and includes the component then import that NgModule in StorybookModule and StorybookModule.
我也尝试使用故事中的 NgModule 导入,但仍然无法正常工作