New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"@nrwl/storybook:storybook" uses proxy package for "@storybook/core-server" #9286
Comments
Hi there @michaelcamper ! Ha, you got me, is all I'll say :P That's a known issue, and I'm supposed to be working on it. Will try to have this fixed some time soon. |
Wow, you guys are quick to reply! 👏🏼 Cool happy to hear that! Just out of curiosity, wouldn't be sufficient to just adjust the import statement? |
Hm, maybe yes maybe no. There's some logic behind this, and right now I'm not 100% sure how we should treat this. I will post updates here, don't worry! |
@mandarini I think it's save to use |
Hi there @michaelcamper ! I am just trying out your issue now! So, your issue exists, indeed if I remove However, if I change the import to |
Also, I think it sort of makes sense to assume that Or did you mean to add |
Actually, here's the PR. You can test it locally, too. It does not seem to be working for me. |
Hi @mandarini! I've just tested it in my project by replacing the import directly in The changes in your PR look good to me! Some tests seem to fail, but I cannot see a relation to the change in storybook. Do you? |
@michaelcamper I first tried changing the import directly in node_modules as well, and it does not work for me. Can you send me a sample reproduction repository, so that I can test it on my side? I will just change the import after I |
So, I am going to change this to an enhancement, since a simple change in the import does not fix it, and also I really think that expecting |
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
The
storybook
executor imports from@storybook/core
to spin up a dev server. As this package is used as a proxy for backwards compatibility, I don't think it is good practice.@storybook/core
is only installed when using@storybook/addon-essentials
(@storybook/addon-docs
to me more specific) and therefor breaks if storybook is used without the docs addon.Expected Behavior
storybook
executor should use@storybook/core-server
instead of relying on a proxy package.Steps to Reproduce
@storybook/addon-essentials
from a workspace with a set up storybook projectnx storybook [project]
Failure Logs
Cannot find module '@storybook/core/server
Environment
Node : 16.13.0
OS : darwin arm64
yarn : 1.22.17
nx : 13.8.7
@nrwl/angular : undefined
@nrwl/cli : 13.8.7
@nrwl/cypress : 13.8.7
@nrwl/detox : undefined
@nrwl/devkit : 13.8.7
@nrwl/eslint-plugin-nx : 13.8.7
@nrwl/express : undefined
@nrwl/jest : 13.8.7
@nrwl/js : 13.8.7
@nrwl/linter : 13.8.7
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : undefined
@nrwl/react : 13.8.7
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : 13.8.7
@nrwl/tao : 13.8.7
@nrwl/web : 13.8.7
@nrwl/workspace : 13.8.7
typescript : 4.5.5
rxjs : 6.6.7
The text was updated successfully, but these errors were encountered: