NX:无法执行故事书

时间:2021-04-27 08:49:14

标签: angular nrwl-nx nrwl angular-storybook

我们无法将 storybook 安装到 NX 项目(最新版本)中,只能在 11.1.5 版本中运行,但无法启动,下面是重现它的步骤:

> rm -rf node_modules 
    
> npm i
> nx migrate 11.1.5
> npm i @nrwl/storybook -D
    

> manually update versions
 "@nrwl/angular": "11.1.5",
 "@nrwl/cli": "11.1.5",
 "@nrwl/eslint-plugin-nx": "11.1.5",
 "@nrwl/jest": "11.1.5",
 "@nrwl/linter": "11.1.5",
 "@nrwl/storybook": "12.0.8",
 "@nrwl/tao": "11.1.5",
 "@nrwl/workspace": "11.1.5",

> npm install

> npx nx g @nrwl/angular:storybook-configuration frontend-core

> npx nx run frontend-core:storybook

执行最后一个命令后storybook 没有启动,也没有显示任何错误

enter image description here

0 个答案:

没有答案