故事书找不到模块“@storybook/angular”

Storybook Cannot find module '@storybook/angular'

我正在尝试为 Angular 8 设置 Storybook,但是当 运行 npm run storybook 我收到以下错误:

ERROR in /home/user/dev/storybook/src/stories/Button.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Button.stories.ts(2,29):
TS2307: Cannot find module '@storybook/angular/types-6-0'.

ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts(1,32):
TS2307: Cannot find module '@storybook/angular'.

ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts(4,29):
TS2307: Cannot find module '@storybook/angular/types-6-0'.

ERROR in /home/user/dev/storybook/src/stories/Page.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Page.stories.ts(1,45):
TS2307: Cannot find module '@storybook/angular'.

然而,@storybook/angularpackage.json上并且安装了,并且文件本身在使用vscode可视化时不会提示任何错误。我尝试使用 google 中的所有解决方案,例如:

My package.json

我做错了什么?

只需在 .storybook 目录中的“typings.d.ts”中添加以下行

declare module '@storybook/angular/demo'