GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ng add - please specify a project name · Issue #11016 · angular/angular-cli

ng add - please specify a project name #11016

New issue
Copy link
New issue
Copy link
Open
Enhancement
Open
ng add - please specify a project name#11016
Enhancement
Copy link
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
needsTriage

Description

@andreasonny83
andreasonny83
opened on May 25, 2018
Issue body actions

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.3

Repro steps

  • Step 1
    starting a new project with ng new angular-project
  • Step 2
    generate a library/application inside the new angular-cli project
    ng g library mylibrary
    ng g application myapp
  • Step 3
    Add @angular/material
    ng add @angular/material myapp
    Installing packages for tooling via npm.
    Multiple projects are defined; please specify a project name
    

Observed behavior

@angular/material gets correclty installed in the node dependencies but the myapp project is not configured for using the library.

Desired behavior

The current ng add usage is: usage: ng add <collection>
Ideally this should allow passing the target app like this:

usage: ng add <collection> [options]
options:
  --project
      The name of the project.
Reacted by Fernando Minoru Baba, Jonas Hao, Paul Williams, Tim Schmidt, Alex Bjørlig, Aarón Cervantes, Joel Cipriano, Erick Xavier, Gabriel Sperrer, Patric Gutersohn and 7 more

Activity

  1. clydin
    added
    comp: cli/add
    on May 25, 2018
  2. minuz commented on May 27, 2018

    @minuz
    minuz
    on May 27, 2018
    More actions

    I was trying to do the same. If you do ng add @angular/material --project=my-app it "works". What I observed was:

    1. The docs don't specify this parameter.
    2. ng generate @angular/material:material-nav --name=app-nav scaffolds the component on the src\app instead of generating on the default project. You also need to append --project=my-app to set to its correct location.
    3. ng serve --project=demo will serve the correct app
    4. The generated template has a little bug isHandset$ | async needs to be wrapped in ()
    Reacted by Byron Thanopoulos, Joe Rossetter, Crypt0Graphic, JayChase, atulattvs, Lanser Lin, Tim Schmidt, Aarón Cervantes, Gabriel Sperrer, Lamberto Basti and 3 more
    Reacted by Lamberto Basti and kenanaReda
  3. Brocco
    added
    featureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
    on Jun 7, 2018
  4. filipesilva
    added
    area: @angular/cli
    and removed
    comp: cli/add
    on Jun 8, 2018
  5. ngbot
    added this to the Backlog milestone on Jan 24, 2019
  6. angular-robot
    added
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Feb 1, 2022
  7. angular-robot commented on Feb 1, 2022

    @angular-robot
    angular-robotBot
    on Feb 1, 2022
    Contributor
    More actions

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  8. ngbot
    modified the milestones: Backlog, needsTriage on Feb 1, 2022
  9. angular-robot commented on Feb 21, 2022

    @angular-robot
    angular-robotBot
    on Feb 21, 2022
    Contributor
    More actions

    Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

    We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

    You can find more details about the feature request process in our documentation.

  10. angular-robot
    added
    feature: 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
    and removed
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    Enhancement

    Projects

    No projects

      Milestone

      • needsTriageNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.