Closed SuneRadich closed 2 years ago
Hi there! We just merged a PR that will use the native Storybook Angular executor from now on. So you should expect this to work out of the box, just like it does in native Storybook setups!
I will close this, but please feel free to reopen after the new version of Nx comes out and you get to try out the new setup! Thanks for reporting 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.
I was part of the discussion that lead to https://github.com/nrwl/nx/pull/9655 and now I am trying to use the changes that were released from that PR.
Current Behavior
After updating to 13.10.3, and trying to set projectBuildConfig in the Storybook Generator (@nrwl/angular:storybook-configuration) the value set does not seem to have any effect in the resulting project.json. I set the value using the VS Code nx console gui, and have tried to set it using defaults in nx.json like
I can see the value in the gui in both cases, but it is as if the value is treated as being blank, ie. the generated file contains the default value for projectBuildConfig and not the value I input.
Expected Behavior
I would have expected the value entered as the value for
projectBuildConfig
would override the default value, and would be output in the resulting project.json file.Steps to Reproduce
When on nx 13.10.3, initiate the generator @nrwl/angular:storybook-configuration Input a value for projectBuildConfig (I am using the VS Code nx console and the gui provided) Run the generator
Eventhough I entered a valid value for projectBuildConfig, the resulting project.json contains the default value (pointing to the lib/app itself)
If I however, add a custom default value for projectBuildConfig for the general storybook generator
And then run this generator on my lib, then I can see my custom value for projectBuildConfig in the generated project.json. The weird part is, that this generator does not seem to have this config option, so perhaps it just pass it on to the @nrwl/angular:storybook-configuration?
It seems as if the angular storybook generator have the config option, but is unable to use it, but that the general storybook generator does not have the config option, but use it anyway if it exist.
Environment
Node : 14.19.1 OS : darwin arm64 npm : 7.24.2
nx : 13.10.3 @nrwl/angular : 13.10.3 @nrwl/cypress : 13.10.3 @nrwl/detox : Not Found @nrwl/devkit : 13.10.3 @nrwl/eslint-plugin-nx : 13.10.3 @nrwl/express : Not Found @nrwl/jest : 13.10.3 @nrwl/js : 13.10.3 @nrwl/linter : 13.10.3 @nrwl/nest : 13.10.3 @nrwl/next : Not Found @nrwl/node : 13.10.3 @nrwl/nx-cloud : 14.0.3 @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 13.10.3 @nrwl/web : Not Found @nrwl/workspace : 13.10.3 typescript : 4.6.4 rxjs : 7.5.5
Community plugins: @ngneat/transloco: 2.23.5 @ngrx/effects: 13.0.2 @ngrx/entity: 13.0.2 @ngrx/router-store: 13.0.2 @ngrx/store: 13.0.2 @ngrx/schematics: 13.0.2 @ngrx/store-devtools: 13.0.2 @storybook/angular: 6.4.19 @twittwer/compodoc: 1.6.6