Tôi muốn thêm một thành phần mới trong lõi asp.net 2.0 SPAs với góc 4 với cli góc với phiên bản này:tôi không thể thêm thành phần mới với cli góc trong spa lõi asp.net
@angular/cli: 1.4.2
node: 8.4.0
os: Linux x64
khi tôi chạy lệnh này ng g c vehicle-form
vào một thư mục của các thành phần có lỗi này:
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.
Ngoài ra, tôi có 3 file cho app.module.ts
không phải là một: \:
app.module.browser.ts
app.module.shared.ts
app.module.server.ts
[kiễu góc CLI trong ASP.NET Core 2 Step By Step] (https: //stackoverflow.com/a/48972840/7487135) –