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
Storybook does not work if staticDirs is defined from .storybook/main.js even though there is nothing defined about staticDir on project.json #9306
Comments
I have the same issue Node : 17.6.0 nx : 13.8.1 |
Thanks people, I am on it! :) |
13.8.5 Works if that's of any help to anyone? |
Hi all! Update:
This does not mean that they RENAMED So, the PR that leon submitted was wrong. There is NO renaming. The So, to correct what you defined as expected behaviour, I think this is the correct:
To be frank, I'm surprised it works on 13.8.5.. If edit: ok I'm wrong, it did add |
I'm sorry I fucked this one up totally. My problem initially was that staticDir did not accept the Where it all went wrong was that I also tried to fix the renaming, but got it all wrong 😢 I'm happy as long as I can pass along the sorry for the inconvenience. |
Yes is this is I want to achieved too, maybe i did not explain it well.. 😃 |
Ha no worries @leon! Thank you very very much for contributing, don't get me wrong!!! :D :D So, passing
|
I'll probably (no promises here :P ) write a generator or migrator to move the content of |
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. |
This happens on 13.8.6+ after this pull request merge (#8885 (comment)). I discussed also some details on pull request but i'm not sure if it will be fixed so I decided to put it here as i feel this is really an issue on the release.
Current Behavior
There is an error on running storybook target, maybe the image below will explain more.
Expected Behavior
-When there is nothing defined on project.json for staticDirs config, it should work fine (just like version 13.8.5 and below) and should follow what was defined on .storybook/main.json.
-When there is staticDirs on storybook config, and have it also on main.js, then should throw error
-When there is staticDirs on storybook config and nothing on main.js then it should work fine and use the staticDirs defined on project.json
Steps to Reproduce
Just create a project with storybook, and on the .storybook/main.js add the staticDirs field. Do not add staticDirs on project.json storybook config
Failure Logs
Check the image above
Environment
iamrommel@Rommels-MacBook-Pro ztech-apps % nx report
Node : 16.14.0
OS : darwin arm64
yarn : 1.22.17
nx : 13.8.8
@nrwl/angular : undefined
@nrwl/cli : 13.8.8
@nrwl/cypress : 13.8.8
@nrwl/detox : undefined
@nrwl/devkit : 13.8.8
@nrwl/eslint-plugin-nx : 13.8.8
@nrwl/express : 13.8.8
@nrwl/jest : 13.8.8
@nrwl/js : 13.8.8
@nrwl/linter : 13.8.8
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : 13.8.8
@nrwl/nx-cloud : 13.1.6
@nrwl/react : 13.8.8
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : 13.8.8
@nrwl/tao : 13.8.8
@nrwl/web : 13.8.8
@nrwl/workspace : 13.8.8
typescript : 4.5.5
rxjs : 6.6.7
Community plugins:
The text was updated successfully, but these errors were encountered: