Comments (7)
@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.
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.
Are you using Typescript 2?
from apollo-angular.
@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.
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.
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.
Seems ok, not having issues with 0.8 any more.
from apollo-angular.
Related Issues (20)
- GraphQL cache unable to detect the changes in query HOT 1
- Feedback for “Subscriptions”
- Apollo never executes any requests HOT 1
- Feedback for “Testing”
- Angular 16 support HOT 6
- PersitedQueryLink: AssetNotDestroyed Error when running ssr
- ApolloTestingController doesn't seem to be triggering an HttpInterceptor
- Feedback for “Get Started”
- Feedback for “Pagination”
- TypeError: Cannot read properties of undefined (reading 'architect') HOT 1
- Feedback for “Server Side Rendering” HOT 1
- Feedback Reset Store on Logout
- For subscriptions, the errorPolicy setting does nothing. HOT 6
- Defer doesn't work with multipart/mixed or text/event-stream HOT 12
- Block ApolloClient devtools checks to run when using ApolloTestingModule HOT 1
- [docs] Simple Apollo Angular Example demo is broken
- Support for Angular Signals ? HOT 7
- Angular 17 support HOT 3
- apollo-angular schematics has a fixed version of apollo-angular and @apollo/client packages HOT 1
- Unable to load template plugin matching 'apollo-angular'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-angular.