cannot determine the module for component angular 5

后端 未结 12 2017
太阳男子
太阳男子 2020-12-29 20:39

I\'m getting following error when I build the Angular app using \"ng build --prod\". This is working when I build with Angular 4 and getting error with Angular 5. With Angul

12条回答
  •  误落风尘
    2020-12-29 21:13

    In my case, I had a pipe declared as their own class in mypipe.ts as well as in app.component.ts for some reason. I remove the one in app.component and it compiled fine.

    In the error message, check where exactly it is complaining and see if that is double code in your project.

提交回复
热议问题