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

[Angular 4] not able to start with setup #9872

Closed
vvdwivedi opened this issue Feb 16, 2020 · 5 comments
Closed

[Angular 4] not able to start with setup #9872

vvdwivedi opened this issue Feb 16, 2020 · 5 comments

Comments

@vvdwivedi
Copy link

Describe the bug
For Angular 4 app, npx -p @storybook/cli@next sb init --type angular gives this error Error: Could not find a default project in your Angular workspace. Add a project and re-run the installation.

This happens with any project created from Angular CLI (I am using 1.4.3) without any changes or configs.

To Reproduce
Steps to reproduce the behavior:

  1. Take any Angular 4 repo
  2. Run npx -p @storybook/cli@next sb init --type angular
  3. See error

Expected behavior
Initialize a new storybook with Angular 4

System:
Please paste the results of npx -p @storybook/cli@next sb info here.

Environment Info:

  System:
    OS: macOS 10.15.2
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  Binaries:
    Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v11.11.0/bin/npm
  Browsers:
    Chrome: 79.0.3945.130
    Firefox: 67.0.4
    Safari: 13.0.4

@aboudard
Copy link

Hello,
Is it possible that you try to run a too recent version of storybook against an "old" version of angular project, since the config file was renamed in Angular 6 : from angular-cli.json to angular.json ?

https://nitayneeman.com/posts/understanding-the-angular-cli-workspace-file/

@vvdwivedi
Copy link
Author

Yes, I used latest storybook with Angular 4. Is there a mapping or document which mentions which version of storybook would be compatible with Angular 4 and so on? That would be really helpful.

@stale
Copy link

stale bot commented Mar 11, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Mar 11, 2020
@stale
Copy link

stale bot commented Apr 11, 2020

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@stale stale bot closed this as completed Apr 11, 2020
@HiCoke
Copy link

HiCoke commented Oct 22, 2020

Hello, this is also the problem I have encountered at present angular.json And. Angular- cli.json I can't continue. Is there a storybook version corresponding to angular4, or are there other solutions when angular4 is not upgraded to a higher version? Thank you for your reply

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

No branches or pull requests

4 participants