2022年9月19日 星期一

Angular Virtual Studio 2022 ng generate component

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.
保哥