Giter VIP home page Giter VIP logo

Comments (7)

kamilkisiela avatar kamilkisiela commented on May 12, 2024 1

@schickling Right now, TS adds @types/chai to the distributed files, it's not apollo specific, it's a known issue with TypeScript and it will be fixed with 2.1. I can't find an issue about it, will look for it later today.

from apollo-angular.

manuelfink avatar manuelfink commented on May 12, 2024

manually installing npm install --save @types/chai @types/isomorphic-fetch typed-graphql solves the problem.

However I'm still getting one error, which I don't know how to get rid off?

ERROR in [default] /Users/.../app-angular2/src/app/+home/home.component.ts:52:8 
Cannot find name 'ApolloQueryObservable'.

However code still works in client

from apollo-angular.

stubailo avatar stubailo commented on May 12, 2024

Are you using Typescript 2?

from apollo-angular.

kamilkisiela avatar kamilkisiela commented on May 12, 2024

@types/chai @types/isomorphic-fetch typed-graphql are related to apollo-client

About ApolloQueryObservable, maybe you just forgot to import it from angular2-apollo?

from apollo-angular.

schickling avatar schickling commented on May 12, 2024

Any update on "removing" the need for the @types/chai @types/isomorphic-fetch typed-graphql workaround? One of the biggest blockers to use Apollo with Typescript 😢

from apollo-angular.

kamilkisiela avatar kamilkisiela commented on May 12, 2024

I think that you can now $ npm install apollo-client angular2-apollo and that's it, no need to install any more packages with types independently. Does it work for you guys?

from apollo-angular.

manuelfink avatar manuelfink commented on May 12, 2024

Seems ok, not having issues with 0.8 any more.

from apollo-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.