Skip to content

defaultCollection is relative to where cmd is run not angular.json #23136

Closed
@kvart714

Description

@kvart714

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

No, it's is duplicate of #15014

Description

angular json - ng-g-c-bug - Visual Studio Code

🔬 Minimal Reproduction

Repo example: https://github.com/kvart714/ng-g-c-bug

It includes custom schematic.
Command ng g c works in project folder, but not works in nested folders due to relative path.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions