组件是2个模块声明的一部分
我尝试构建一个ionic 2应用程序。当我在使用离子服务的浏览器中尝试该应用程序或在模拟器上启动该应用程序时,一切正常。 但是当我每次尝试构建它时都会出错 ionic-app-script tast: "build" Error Type AddEvent in "PATH"/add.event.ts is part of the declarations of 2 modules: AppModule in "PATH"/app.modules.ts and AddEvent in "PATH"/add-event.module.ts. Please consider moving AddEvent in "PATH"/add-event.ts to a higher module that imports AppModule in "PATH"/app.module.ts and AddEventModule. You can also creat a new NgModule …