Closed morgnism closed 1 month ago
I gave this a fresh run again following the steps above and the server started up this time. The main change was updating my node version to LTS v22.3.0.
A few weird things about the generator still don't add up tho. i.e. Using the angular storybook configuration installs React, and references to files that haven't been generated.
@morgnism Hello!
I'll dig deeper as soon as I can, however, the storybook app itself is built with React so it needs it as a dependency. I'll see if the react installation is coming from our side or the storybook side though
@morgnism Hello!
I'll dig deeper as soon as I can, however, the storybook app itself is built with React so it needs it as a dependency. I'll see if the react installation is coming from our side or the storybook side though
Thanks, Colum. Fyi, I upgraded to version 8 per the nx docs and noted the following:
We don't currently have official support for Storybook 8, but it is coming within the next two months. We may discover more as we add that support
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
Migrating an existing (working) angular app with storybook version 8 fails to launch in an angular monorepo.
Expected Behavior
The migrated storybook app should launch.
GitHub Repo
No response
Steps to Reproduce
Before migrating the project files, I generated a new storybook setup:
nx g @nx/angular:storybook-configuration shared-ui
.npx nx run shared-ui:storybook
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
When running the generate script (nx Console or cli), here's a snapshot of the generated parts.
Note: there are references to
tsconfig.storybook.json
but this file is never generated.project.json
nx.json:
package.json (post upgrade to version 8. I don't know why it installs react??):