Posted at

[備忘録]Angularプロジェクト作成(ng new)でエラー


Angularで新規プロジェクト作成しようとするとエラーが出たよ

MakinoMacBook-Pro:makimatsu makimatsu$ ng new ng_dragDrop

? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? SCSS [ http://sass-lang.com ]
Schematic input does not validate against the Schema: {"name":"ng_dragDrop","version":"7.0.6","routing":false,"style":"scss"}
Errors:

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


原因

プロジェクト名にアンダーバーが入っているとダメらしい

名前を変更したら作成できた!

MakinoMacBook-Pro:makimatsu makimatsu$ ng new ngDragDrop

? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? SCSS [ http://sass-lang.com ]
CREATE ngDragDrop/README.md (1027 bytes)
CREATE ngDragDrop/angular.json (3895 bytes)
CREATE ngDragDrop/package.json (1319 bytes)
CREATE ngDragDrop/tsconfig.json (408 bytes)