【发布时间】:2022-01-04 22:41:59
【问题描述】:
在使用 ESLint 将 Storybook 安装到 React.js 应用程序后,VSCode linter 没有提取示例 .stories.js 文件中的 @storybook/react 导入。
它给了我以下错误:
'@storybook/react' should be listed in the project's dependencies, not devDependencies.eslintimport/no-extraneous-dependencies
【问题讨论】: