我们无法将故事书安装到 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
执行最后一个命令后故事书没有启动,也没有显示任何错误