Angular 2 - Can't resolve all parameters for component: (?)

前端 未结 4 661
死守一世寂寞
死守一世寂寞 2021-01-12 06:47

I started an Angular2 app and I have an issue since days !

Can\'t resolve all parameters for HomeComponent: (?).(…) 

But my issue is not a

4条回答
  •  情书的邮戳
    2021-01-12 07:29

    Make sure you have

    "emitDecoratorMetadata": true,
    

    in your tsconfig.js. You should not need to add @Inject() to your function parameters if that's enabled.

提交回复
热议问题