Closed mandarini closed 3 years ago
@juristr I created this issue
@mandarini getting the same issue with:
npx create-nx-workspace --preset=angular
)nx generate @nrwl/angular:library sharedlibrary --directory shared --strict --publishable --importPath @myorg/sharedlibrary --buildable --style=scss
)nx generate @nrwl/angular:storybook-configuration shared-sharedlibrary --generateStories --configureCypress --generateCypressSpecs
)nx run shared-sharedlibrary:storybook
also gives: ERROR: Cannot find module '@storybook/angular/dist/server/options'
I updated @nrwl/storybook
to "^11.6.0" and @storybook/angular
to "^6.2.1", and that seems to have fixed it. Maybe migrations can be updated to account for this?
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
On a mixed workspace, when Storybook is added on a different framework it does not run. eg. Workspace with Angular and React libs/apps Add Storybook in React lib or app Works/runs Add Storybook in Angular lib or app Storybook is generated Storybook does not run
Expected Behavior
Storybook works on mixed workspaces.
Steps to Reproduce
Scenario 1:
create-nx-workspace
with react app@nrwl/react:storybook-configuration
schematic for react lib and react appnx run <app and lib>:storybook
Scenario 2:
@nrwl/angular:storybook-configuration
for angular libnx run <angular lib>:storybook
ERROR: Cannot find module '@storybook/angular/dist/server/options'
And vice-versa