【发布时间】:2021-06-23 11:30:00
【问题描述】:
我正在尝试将故事书支持添加到现有的 Nx Angular 项目中。更具体地说,是一个名为ui 的库。跟着docs,我跑了:
$ npm i -D @nrwl/storybook
$ nx g @nrwl/angular:storybook-configuration project-name
.storybook 文件夹在ui 库下成功生成。我在我的一个组件文件夹中添加了一个*.component.story.ts 文件。但是,当我运行nx run ui:storybook 时,它什么也不做,只是终止,如下所示:
我该如何解决这个问题?
Nx 报告输出
> NX Report complete - copy this into the issue template
Node : 14.15.4
OS : win32 x64
npm : 6.14.10
nx : Not Found
@nrwl/angular : 11.0.20
@nrwl/cli : 11.0.20
@nrwl/cypress : 11.0.20
@nrwl/devkit : 11.0.20
@nrwl/eslint-plugin-nx : 11.0.20
@nrwl/express : Not Found
@nrwl/jest : 11.0.20
@nrwl/linter : 11.0.20
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 11.0.20
@nrwl/web : Not Found
@nrwl/workspace : 11.0.20
typescript : 4.0.5
【问题讨论】: