Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typscript @1.4 errors #3

Closed
veeramarni opened this issue Jul 1, 2017 · 3 comments
Closed

typscript @1.4 errors #3

veeramarni opened this issue Jul 1, 2017 · 3 comments

Comments

@veeramarni
Copy link
Collaborator

veeramarni commented Jul 1, 2017

Seeing some significant errors withs @typescript 1.4. We will continue with version 1.3 until we know exactly the issue is.

[at-loader] Checking finished with 6 errors
[at-loader] ./node_modules/graphql-subscriptions/dist/pubsub-engine.d.ts:5:52
    TS2304: Cannot find name 'AsyncIterator'.

[at-loader] ./node_modules/graphql-subscriptions/dist/pubsub.d.ts:12:52
    TS2304: Cannot find name 'AsyncIterator'.

[at-loader] ./node_modules/graphql-subscriptions/dist/with-filter.d.ts:2:94
    TS2304: Cannot find name 'AsyncIterator'.

[at-loader] ./node_modules/graphql-subscriptions/dist/with-filter.d.ts:3:58
    TS2304: Cannot find name 'AsyncIterator'.
[at-loader] ./node_modules/rxjs/Subject.d.ts:16:22
    TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.

[at-loader] ./node_modules/rxjs/observable/dom/WebSocketSubject.d.ts:24:22
    TS2415: Class 'WebSocketSubject<T>' incorrectly extends base class 'AnonymousSubject<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<T>'.
      Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'.
        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'.

[at-loader] ./servers/frontend-server/src/index.tsx:68:19
    TS2345: Argument of type '{ apollo: (state: Store, action: ApolloAction) => Store; "@sample/counter": (state: { value: numb...' is not assignable to parameter of type 'ReducersMapObject'.
  Property 'apollo' is incompatible with index signature.
    Type '(state: Store, action: ApolloAction) => Store' is not assignable to type 'Reducer<any>'.
      Types of parameters 'action' and 'action' are incompatible.
        Type 'A' is not assignable to type 'ApolloAction'.
          Type 'Action' is not assignable to type 'ApolloAction'.
            Type 'Action' is not assignable to type 'QueryResultAction'.
              Property 'result' is missing in type 'Action'.
                Type 'A' is not assignable to type 'WriteAction'.
                  Type 'Action' is not assignable to type 'WriteAction'.
                    Property 'writes' is missing in type **'Action'.**
 #```
@veeramarni
Copy link
Collaborator Author

opened issue with rxjs

@veeramarni
Copy link
Collaborator Author

veeramarni commented Jul 1, 2017

Using the workaround suggest for following issue. This issue appears in lower tyepscript version as well.

[at-loader] ./node_modules/graphql-subscriptions/dist/pubsub-engine.d.ts:5:52
    TS2304: Cannot find name 'AsyncIterator'.

[at-loader] ./node_modules/graphql-subscriptions/dist/pubsub.d.ts:12:52
    TS2304: Cannot find name 'AsyncIterator'.

[at-loader] ./node_modules/graphql-subscriptions/dist/with-filter.d.ts:2:94
    TS2304: Cannot find name 'AsyncIterator'.

apollographql/graphql-subscriptions#83

@veeramarni
Copy link
Collaborator Author

Check the workaround for fixing rxjs issue
ReactiveX/rxjs#2539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant