Angular2 - Could not find an NgModule

前端 未结 6 1365
难免孤独
难免孤独 2020-12-07 05:44

Hello I\'ve just created a new project from the CLI using the simple

ng new frontend

command however once I go into my project to:

6条回答
  •  星月不相逢
    2020-12-07 06:08

    Could not find ngModule can be solved by passing --module=

    There are multiple ways to fix this issue one among them is as follows,

    ng g c components/list-template --module=modules/app.module.ts
    

    For other options with respect to generate component is here https://angular.io/cli/generate#component

提交回复
热议问题