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

前端 未结 4 1529
无人共我
无人共我 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:53

    I had the same problem , but for me, two components with the same name were there something like below,

    my-first-app\src\app\header\header.component.ts

    my-first-app\src\header\header.component.ts

    the second one is unused and wrongly placed as all my codes were inside my-first-app\src\app only. I removed the second one and it resolved my issue.

提交回复
热议问题