Skip to content

NG CLI 6: ng generate put files in wrong place #10672

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

Closed
matheusdavidson opened this issue May 6, 2018 · 6 comments
Closed

NG CLI 6: ng generate put files in wrong place #10672

matheusdavidson opened this issue May 6, 2018 · 6 comments

Comments

@matheusdavidson
Copy link

matheusdavidson commented May 6, 2018

Versions

Angular CLI: 6.0.0
Node: 9.10.1
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

  • Step 1
    Generate a new app: ng new angular --routing

  • Step 2
    run: ng g module --routing test

Observed behavior

Files are generated in the wrong place, lets say your project root is:
/var/www/project

Module test gets generated in:
/var/www/project/var/www/project/test

Desired behavior

Expected test module to be generated in the right place:
/var/www/project/src/app/test

Mention any other details that might be useful (optional)

I'm running latest NG 6, with latest NG CLI 6 on a MacOS High Sierra, other projects with NG 5 and NG CLI 1.7.4 works as expected

captura de tela 2018-05-05 as 22 22 07

@matheusdavidson matheusdavidson changed the title ng generate path problem ng generate put files in wrong place May 6, 2018
@matheusdavidson matheusdavidson changed the title ng generate put files in wrong place NG CLI 6: ng generate put files in wrong place May 6, 2018
@matheusdavidson
Copy link
Author

Same as #10653

@johren02
Copy link

johren02 commented May 6, 2018

This is also happening on my machine.

@Brocco
Copy link
Contributor

Brocco commented May 11, 2018

A PR that is part of 6.0.1 will hopefully address this issue. @matheusdavidson can you please verify this one too?

@matheusdavidson
Copy link
Author

Sure, i”ll try that, thanks

@matheusdavidson
Copy link
Author

@Brocco, its working with 6.0.1, thank you!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants