Skip to content

Unhelpful warning running ng g c with multiple projects sharing the same root #11532

@CodySchrank

Description

@CodySchrank

Bug Report or Feature Request (mark with an x)

- [X ] bug report
- [ ] feature request

Area

- [X ] devkit
- [ ] schematics

Versions

node: v8.11.3
npm: 6.1.0
ng cli: 6.1.0-rc.1

Repro steps

Create an angular.json with multiple projects. Set 1 as default project. Run ng g c

The log given by the failure

"Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead."

Desired functionality

This warning is extraneous when a default project is set and doesn't offer a solution to silence it. Instead of a warning it should just use the default project if one is set.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions