-
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
Angular storybook library fails to compile if using workspace.json #3043
Comments
This is an issue with Feel free to lobby for it to be reviewed. |
That PR commit 18be1a7 was merged into the next branch 1 day ago. How to find out when it will go into a release? |
@timofeysie It looks like the PR was tagged with the 6.0 milestone. So whenever they release 6.0, we'll update the dependencies for In the meantime, you could work around this issue by renaming |
It looks like here's an issue that gives estimates of when 6.0 will be released. I'd follow that issue for updates. |
Hi @isaacplmann , thanks for your replies. Changing workspace.json to angular.json didn't help. Running the already generated storybook gave:
When trying to generate a new storybook after that, I get this:
Maybe I'm just an edge case in wanting to use React and Angular in the same repo. I'm also still not sure what the practical differences there are between using nx vs ng. I thought at first that you should be using nx for everything these days, but maybe that's not the case. |
Based on @isaacplmann's comment, I managed to use the following package.json scripts:
and just run In my case, I have to install |
Got rid of the warning by updating |
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. |
Expected Behavior
Storybook should work for an Angular library inside an nx workspace using a
workspace.json
file.Current Behavior
Storybook compilation fails with error:
Failure Information (for bugs)
When building storybook for Angular, storybook assumes there is an
angular.json
. This can be seen here.Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Other
I know the problem lies with storybook for assuming
angular.json
, but aworkspace.json
file is entirely unique to Nx which is why I chose to post this issue here.The text was updated successfully, but these errors were encountered: