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

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

    elaborating on answer by @[Thom Kiesewetter]

    It could also be a path casing issue reference used in the module or in routes or anywhere else

    e.g path was

    import { EmployeeComponent } from "./Entities/employee.component";

    instead of

    import { EmployeeComponent } from "./entities/employee.component";

    where the real path was "entities" and not "Entities"

提交回复
热议问题