0


You need to log in to create posts and topics.

Error after upgrade "rxjs": "6.4.0"

Hi,

ERROR in src/app/services/account.service.ts(73,9): error TS2345: Argument of type 'OperatorFunction<User, {}>' is not assignable to parameter of type 'OperatorFunction<User, User>'.
Type '{}' is not assignable to type 'User'.
Property 'friendlyName' is missing in type '{}'.

How I can resolve this error?

 

Regards Ingo

Hello,

To solve this issue and make it work ith Rxjs 6.4.0 change the line below in the file account.service.ts:

else 
 {return this.accountEndpoint.getUserByUserNameEndpoint<User>(user.userName).pipe<User>(

To

else
 {return this.accountEndpoint.getUserByUserNameEndpoint<User>(user.userName).pipe(

That is pipe<User> is changed to just pipe.

Note that QuickApp by practice uses the same package versions as the latest version of angular CLI for maximum compatibility. At the time of writing this QuickApp will use RxJs version 6.3.3 which is the same as the version for angular cli.

Regards,
Eben Monney