angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Unable to create new project with a number in its name

Open Cammisuli opened this issue 8 years ago • 24 comments

Versions

Angular CLI: 6.0.0
Node: 9.9.0
OS: darwin x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.6.0
@angular-devkit/core         0.6.0
@angular-devkit/schematics   0.6.0
@schematics/angular          0.6.0
@schematics/update           0.6.0
rxjs                         6.1.0
typescript                   2.7.2

Repro steps

  • npm i -g @angular/cli
  • ng new ng-6-playground

Observed behavior

Schematic input does not validate against the Schema: {"name":"ng-6-playground","version":"6.0.0","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:

  Data path ".name" should match format "html-selector".

Desired behavior

Should be able to create a new project using the CLI.

Cammisuli avatar May 03 '18 23:05 Cammisuli

I had the same error as well, removing underscore in the project's name fixed the issue.

ihemantkumar avatar May 20 '19 11:05 ihemantkumar

underscore [ _ ] in name of the project also threw this error

I couldn't agree with you any more TT

GaoxiaoyuVV avatar May 20 '19 16:05 GaoxiaoyuVV

It seems that "_" is the main culprit... I removed and was able to create a new project.

viveksiddhartha avatar Jul 28 '19 14:07 viveksiddhartha

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.