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

types inconsistency #5

Closed
kobvel opened this issue Jul 6, 2017 · 5 comments
Closed

types inconsistency #5

kobvel opened this issue Jul 6, 2017 · 5 comments
Assignees
Labels

Comments

@kobvel
Copy link

kobvel commented Jul 6, 2017

Just after the first start getting errors related to types.

ERROR in /Users/kobvel/Workspace/examples/quickstart-with-apollo/node_modules/apollo-client-rxjs/build/src/Rx
ObservableQuery.d.ts (7,22): Class 'RxObservableQuery<T>' incorrectly extends base class 'Observable<ApolloQueryResult<T>>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<ApolloQueryResult<T>, ApolloQueryResult<R>>) => Observable<ApolloQueryResu...' is not assignable to type '<R>(operator: Operator<ApolloQueryResult<T>, R>) => Observable<R>'.
      Types of parameters 'operator' and 'operator' are incompatible.
        Type 'Operator<ApolloQueryResult<T>, R>' is not assignable to type 'Operator<ApolloQueryResult<T>, ApolloQueryResult<{}>>'.
          Type 'R' is not assignable to type 'ApolloQueryResult<{}>'.
@nikolasburk
Copy link
Contributor

Hey @kobvel, I can't reproduce the issue right now. When I'm running the app by following the instructions from the README, everything works out fine and I'm not getting any errors! Could you give a bit more precise information about how the issue comes up?

@asif633
Copy link

asif633 commented Aug 1, 2017

I also got the issue. The steps I followed

  1. git cloned the https://github.com/graphcool-examples/angular-graphql.
  2. Set up graphcool account.
  3. Changed the project uri in the client.ts file and also inside package.json file. Used the simple endpoint.
  4. Run the npm install inside the quickstart-with-apollo project. No error was shown.
  5. Run ng serve and got the same error.

@claytoncasey01
Copy link
Contributor

A quick fix to the problem for now would be to set typescript to "typescript": "2.3.4" in your package.json file, that seems to fix the issue. This isn't specific to this project.

@marktani
Copy link
Contributor

marktani commented Aug 7, 2017

That's great @claytoncasey01, could you send a quick PR? 🙂

marktani pushed a commit that referenced this issue Aug 7, 2017
@marktani
Copy link
Contributor

marktani commented Aug 7, 2017

Closing this for now, even though #6 is only a temporary solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 participants