ng g component でエラー

AngularCliで新規にhogeコンポーネントを作成。

ng g component hoge

と入力すると

Error: More than one module matches. Use skip-import option to skip importing the component into the closest module.
More than one module matches. Use skip-import option to skip importing the component into the closest module.

とエラー。この場合、

ng g component hoge --module app.module

で無事にhoge が作成される。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.