を角度のCLIを使用して新しいコンポーネントを追加することはできません。私は、このバージョンで<strong>角度CLI</strong>で<strong>角度4</strong>で<strong>asp.netコア2.0</strong>のSPAで新しいコンポーネントを追加したいのasp.netコア温泉で
@angular/cli: 1.4.2
node: 8.4.0
os: Linux x64
私はコンポーネントのディレクトリでこのコマンドng g c vehicle-form
を実行し、このエラーを得た:
Error: Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule. Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule.
はまた、私はapp.module.ts
のためではない1 3つのファイルを持っている:\:
app.module.browser.ts
app.module.shared.ts
app.module.server.ts
に動作したとき、私は動作しませんでした。 //stackoverflow.com/a/48972840/7487135) –