Cannot determine the module for class X in X.ts! Add X to the NgModule to fix it error in ionic2

前端 未结 4 1533
无人共我
无人共我 2020-12-17 19:26

I am facing an issue when I try to build my app using the following command :

ionic cordova run android --prod --release

Everything runs fine if

4条回答
  •  余生分开走
    2020-12-17 19:40

    Changed declarations to pages like below and it worked.

    declarations: pages
    

    I got the answer at :https://forum.ionicframework.com/t/error-while-running-the-ionic3-app-in-production-mode/106294

提交回复
热议问题