Could not find an NgModule. Use the skip-import option to skip importing in NgModule.因為vs2022如果是開.net core版本會是app.module.ts及app.service.module.ts兩個,所以兩個module以上所以必須指定module
ng g c firstapp --module=app參考來源
Could not find an NgModule. Use the skip-import option to skip importing in NgModule.
保哥