-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
storybook init: Cannot destructure property 'root' of 'angularJSON.getProjectSettingsByName(...)' as it is undefined #22350
Comments
I need a reproduction, otherwise, I don't know how to tackle this issue. |
Finding as part of this investigation: We should improve the handling here, as it sends |
Finding: it's likely that this line of code receives |
@yannbf I think you wanted to take this ticket over. Or was it another which we talked about yesterday? |
@valentinpalkovic you could take it if you'd like, especially if you know more about angular.json formats over angular versions! |
Zoinks!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.13 containing PR #22663 that references this issue. Upgrade today to the
|
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.21 containing PR #22663 that references this issue. Upgrade today to the
|
Error location: angular generator
Suggested work:
This is a bug in the way the
angular.json
file is parsed when initializing Storybook. Could be related to different formats present in different angular versions, or really just lack of better error handling. We should investigate it and fix it. Additionally, we should investigate the feedback from this comment and take into account when improving the error message (or maybe adding an FAQ entry to the docs website).The text was updated successfully, but these errors were encountered: