Skip to content

ng new game-2d fails #13885

Closed
Closed
@leegee

Description

@leegee

🐞 Bug report

Command (mark with an x)

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

Is this a regression?

?

Description

Apparently can't create a new project with a hyphen in the name.

leege@studio MINGW64 /l/src/game-2d
$ npm install -g @angular/cli
C:\Users\leege\AppData\Roaming\npm\ng -> C:\Users\leege\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ @angular/cli@7.3.5
added 110 packages from 91 contributors, removed 61 packages and updated 27 packages in 17.326s

leege@studio MINGW64 /l/src/game-2d
$

leege@studio MINGW64 /l/src/game-2d
$ ng new game-2d
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS    (.css )
Schematic input does not validate against the Schema: {"name":"game-2d","version":"7.3.5","routing":true,"style":"css"}
Errors:

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

leege@studio MINGW64 /l/src/game-2d
$ ng new game2d
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS    (.css )
CREATE game2d/angular.json (3807 bytes)
CREATE game2d/package.json (1305 bytes)
CREATE game2d/README.md (1023 bytes)...
...etc...

🔬 Minimal Reproduction

ng new game-2d

🔥 Exception or Error

As above:


Schematic input does not validate against the Schema: {"name":"game-2d","version":"7.3.5","routing":true,"style":"css"}
Errors:

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

🌍 Your Environment


Angular CLI: 7.3.5
Node: 11.9.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.5
@angular-devkit/core         7.3.5
@angular-devkit/schematics   7.3.5
@schematics/angular          7.3.5
@schematics/update           0.13.5
rxjs                         6.3.3
typescript                   3.2.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions