Skip to content
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: No angular.json file found #22351

Closed
Tracked by #22243
yannbf opened this issue May 2, 2023 · 2 comments · Fixed by #22377
Closed
Tracked by #22243

storybook init: No angular.json file found #22351

yannbf opened this issue May 2, 2023 · 2 comments · Fixed by #22377

Comments

@yannbf
Copy link
Member

yannbf commented May 2, 2023

Error location: angular generator → AngularJSON

Suggested work:

This is related to projects that try to initialize Storybook but do not have an angular.json file in the current working directory. We should investigate what exactly is happening, whether this is a correct scenario or if we could improve it. For instance, we could use find-up to detect the angular.json file rather than readSync which only looks for files at the current working directory.

If there is no need to change the behavior because the error is legit, then we should at least improve the error message to provide a link to an FAQ entry (that should be created as part of this task) in the Storybook documentation website.

@shilman
Copy link
Member

shilman commented May 9, 2023

Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.14 containing PR #22377 that references this issue. Upgrade today to the @future NPM tag to try it out!

npx sb@next upgrade --tag future

@shilman
Copy link
Member

shilman commented May 9, 2023

Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.10 containing PR #22377 that references this issue. Upgrade today to the @latest NPM tag to try it out!

npx sb@latest upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants