5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ng new でエラー should match format "html-selector"

Last updated at Posted at 2019-01-08

angularのプロジェクトを作成しようとしたら、エラー

$ ng new angular_onsen

? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? SASS   [ http://sass-lang.com   ]
Schematic input does not validate against the Schema: {"name":"angular_onsen","version":"7.1.4","routing":true,"style":"sass"}
Errors:

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

プロジェクト名にアンダーバーが使えないそうです。

$ ng new angular-onsen

? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? SASS   [ http://sass-lang.com   ]
CREATE angular-onsen/README.md (1029 bytes)
CREATE angular-onsen/angular.json (3922 bytes)
CREATE angular-onsen/package.json (1312 bytes)
CREATE angular-onsen/tsconfig.json (435 bytes)
CREATE angular-onsen/tslint.json (2824 bytes)
CREATE angular-onsen/.editorconfig (246 bytes)

作成できました!

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?