Skip to content

Problem with RXJS  #1

Open
Open
@ravi4022

Description

@ravi4022

Hi,

When trying to issues the "npm dev run" command we got the below errors.

ERROR in D:\workspace\Angularjs_workspace\ng2-typescript-boilerplate\node_modules\rxjs\observable\dom\WebSocketSubject.d.ts
(24,22): error TS2415: Class 'WebSocketSubject' incorrectly extends base class 'AnonymousSubject'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => WebSocketSubject' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'WebSocketSubject' is not assignable to type 'Observable'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.

ERROR in D:\workspace\Angularjs_workspace\ng2-typescript-boilerplate\node_modules\rxjs\Subject.d.ts
(16,22): error TS2415: Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.

ERROR in ./src/store/store.ts
(12,55): error TS2345: Argument of type '{ counter: (state: ICounterRecord, action: Action) => ICounterRecord; session: (state: ISessionRe...' is not assignable to parameter of type 'ReducersMapObjec
'.
Property 'router' is incompatible with index signature.
Type '(state: string, action: RouterAction) => string' is not assignable to type 'Reducer'.
Types of parameters 'action' and 'action' are incompatible.
Type 'A' is not assignable to type 'RouterAction'.
Type 'Action' is not assignable to type 'RouterAction'.
Property 'payload' is missing in type 'Action'.
webpack: Failed to compile.

could you please help us ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions