Angular2 - Could not find an NgModule

前端 未结 6 1366
难免孤独
难免孤独 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:03

    Change root to the directory where your module is in angular.json

    From:

    root:""
    

    to directory of app module:

    root: "/src/app"
    

提交回复
热议问题