在Ionic中构建APK时出错

时间:2018-08-14 23:37:14

标签: ionic-framework ionic2 cordova-plugins

有人可以告诉我这个错误的实际含义吗?

 Type IncidentsPage in C:/Users/Infonet/election/src/pages/incidents/incidents.ts is part of the declarations
            of 2 modules: AppModule in C:/Users/Infonet/election/src/app/app.module.ts and IncidentsPageModule in
            C:/Users/Infonet/election/src/pages/incidents/incidents.module.ts! Please consider moving IncidentsPage in
            C:/Users/Infonet/election/src/pages/incidents/incidents.ts to a higher module that imports AppModule in
            C:/Users/Infonet/election/src/app/app.module.ts and IncidentsPageModule in
            C:/Users/Infonet/election/src/pages/incidents/incidents.module.ts. You can also create a new NgModule that
            exports and includes IncidentsPage in C:/Users/Infonet/election/src/pages/incidents/incidents.ts then import
            that NgModule in AppModule in C:/Users/Infonet/election/src/app/app.module.ts and IncidentsPageModule in
            C:/Users/Infonet/election/src/pages/incidents/incidents.module.ts.

0 个答案:

没有答案