-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
storybookConfigurationGenerator appending to nx.json ad nauseam #27866
Comments
@matthew-williamson Can you please provide the Nx version you're using by running
|
@Coly010 ah, I see. Totally possible: |
Interestingly, you’re on a version that fix exists for. I see you have a local workspace plugin, are you invoking storybookConfigurationGenerator from this plugin? |
I think this PR is the culprit that broke the comparison. 05e7602#diff-2cc24f7df8a70ad01ff5f9e420bd92c04b86adda2ee5005bce9aa5a165ab0147L137-L145 Simply missing a |
@jrschifa Ah! good spot. I'll get it resolved |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> `build-storybook` is being added to cacheable operations multiple times when the `@nx/storybook:init` generator is being invoked. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Do not add `build-storybook` multiple times ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #27866 (cherry picked from commit 79443ff)
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
When using the
storybookConfigurationGenerator
from@nx/react
, my workspace'snx.json
file gets an additionaltasksRunnerOptions.default.options.cacheableOperations
build-storybook
value every single time, meaning it eventually looks likeExpected Behavior
It should not be doing that, if the generator or update of the tree or files or whatever is causing it sees the value in the nx.json array, it shouldn't add a new one.
GitHub Repo
No response
Steps to Reproduce
storybookConfigurationGenerator
Nx Report
Failure Logs
No response
Package Manager Version
yarn 3.1.1
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: