loopback-sdk-builder icon indicating copy to clipboard operation
loopback-sdk-builder copied to clipboard

Error when compiling angular app

Open luckySeventeen opened this issue 7 years ago • 1 comments

What type of issue are you creating?

  • [ ] Bug
  • [ ] Enhancement
  • [x ] Question

What version of this module are you using?

  • [x ] 2.0.10 (Stable)
  • [ ] 2.1.0-rc.n (2.1 Release Candidate n)
  • [ ] Other

Write other if any:

Please add a description for your issue:

I am gettung an error when webpack is compiling my client app. it says: ERROR in /Users/milanj/em/client/sdk/services/core/base.service.ts (141,14): The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'HttpEvent<{}>' is not a valid type argument because it is not a supertype of candidate 'HttpResponse'. Type 'HttpResponse' is not assignable to type 'HttpResponse<{}>'. Type 'any' is not assignable to type '{}'.

Please can anyone help?

luckySeventeen avatar Mar 26 '18 10:03 luckySeventeen

I noticed that also in the 2.1.0 release. Suddenly all params that are not stated in angular will get a {} value

dmastag avatar Mar 27 '18 17:03 dmastag