-
Notifications
You must be signed in to change notification settings - Fork 11.9k
ng add - please specify a project name #11016
Copy link
Copy link
Open
Labels
area: @angular/clifeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
Milestone
Metadata
Metadata
Assignees
Labels
area: @angular/clifeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
Versions
_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 6.0.5 Node: 10.1.0 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router Package Version ------------------------------------------------------------ @angular-devkit/architect 0.6.5 @angular-devkit/build-angular 0.6.5 @angular-devkit/build-ng-packagr 0.6.5 @angular-devkit/build-optimizer 0.6.5 @angular-devkit/core 0.6.5 @angular-devkit/schematics 0.6.5 @angular/cli 6.0.5 @angular/material 6.1.0 @ngtools/json-schema 1.1.0 @ngtools/webpack 6.0.5 @schematics/angular 0.6.5 @schematics/update 0.6.5 ng-packagr 3.0.0-rc.5 rxjs 6.2.0 typescript 2.7.2 webpack 4.8.3Repro steps
starting a new project with
ng new angular-projectgenerate a library/application inside the new angular-cli project
Add @angular/material
Observed behavior
@angular/materialgets correclty installed in the node dependencies but themyappproject is not configured for using the library.Desired behavior
The current
ng addusage is:usage: ng add <collection>Ideally this should allow passing the target app like this: