Skip to content

Creating a module deeper than src/app throws Invalid path #3255

Closed
@SebastianSchenk

Description

@SebastianSchenk

Please provide us with the following information:

OS?

Mac OSX El Capitan 10.11.4

Versions.

angular-cli: 1.0.0-beta.21
node: 6.7.0
os: darwin x64

Repro steps.

  • Create new project with ng new my-app
  • Create a new folder inside src/app (e.g. src/app/modules)
  • Go to new folder (cd src/app/modules)
  • Create new module (ng g module core)

The log given by the failure.

Invalid path: "/src/app/modules/modules"" is not a valid path.

Mention any other details that might be useful.

To summarise this issue. While creating a new module the cli tries to go into the same folder again, if the module is created deeper than /src/app. Creating an module inside /src/app works as expected.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfultype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions