Skip to content

ng new - wont allow dashes as the first param #14137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Adam-Kernig opened this issue Apr 11, 2019 · 3 comments
Closed

ng new - wont allow dashes as the first param #14137

Adam-Kernig opened this issue Apr 11, 2019 · 3 comments

Comments

@Adam-Kernig
Copy link

🐞 Bug report

- [ X ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

No

Description

Running ng new followed by a dash cased string will cause an error

🔬 Minimal Reproduction

ng new april-2019

🔥 Exception or Error


adamkernig$ ng new april-2019
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
Schematic input does not validate against the Schema: {"name":"april-2019","version":"7.3.8","routing":true,"style":"css"}
Errors:

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

🌍 Your Environment


Angular CLI: 7.3.8
Node: 10.15.0
OS: darwin x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.8
@angular-devkit/core         7.3.8
@angular-devkit/schematics   7.3.8
@schematics/angular          7.3.8
@schematics/update           0.13.8
rxjs                         6.3.3
typescript                   3.2.4
@alan-agius4
Copy link
Collaborator

Duplicate of #13885

@alan-agius4 alan-agius4 marked this as a duplicate of #13885 Apr 11, 2019
@clydin
Copy link
Member

clydin commented Apr 11, 2019

Just a quick note that the dash itself is not the problem but rather the presence of a number immediately following the dash.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants