Error: No provider for t

后端 未结 5 1113
Happy的楠姐
Happy的楠姐 2020-12-14 19:50

I am trying to compile my angular code to production mode via ng build --prod and its successful but in browser I get the error :

ERROR p {_         


        
5条回答
  •  遥遥无期
    2020-12-14 20:02

    I did not want to give up the optimization as the bundle size became about 8 times larger.

    luckily it turned out to be something stupid :) I had providers:[] section in one of my components When I removed it the error has disappeared.

    Hope this might be helpful for someone!

提交回复
热议问题