question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create new project with a number in its name

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

44reactions
UniQPcommented, May 4, 2018

Just got the same error with an underscore in the project name.

20reactions
Cammisulicommented, May 3, 2018

Actually looking into this more, it appears that there’s an issue with creating a project with a number in it’s name.

If I create a project with ng new ng-playground it works. But as soon as I add a number like ng new ng-6-playground the error in the original post appears.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create a new project (#24739) · Issues - GitLab.org
Now I've figured out that I can not crate a new project any more. ... Fill 'Project name' field with 'NewProject'; Click on...
Read more >
unable to create new project in visual studio 2015
Open visual studio. Tools Menu | Options | Projects and Solutions | Check the checkbox "Save new projects when created". Also, you can...
Read more >
Solved: Unable to create new project - AutoCAD Electrical
In AutoCAD Electrical 2020 I am unable to create a new project. I can go to the project manager and click on new...
Read more >
Can't create a new project - Adobe Support Community
Type a "name" in the name field. Set a location for the project file in the drop-down for Location. Click "create" ... that's...
Read more >
Getting "Failed to create the Salesforce DX project: A name ...
Hi. IC2 is just running "sfdx force:project:create", so perhaps we should see the exact command it's running. Please enable debug logging for Salesforce...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found