apollo-angular: Error using 1.1.0 on Angular@5

When we upgrade to v1.1.0 from v1.0.1 on an Angular5 project we’re getting the following error using apollo.watchQuery:

ERROR TypeError: Object(...) is not a function

apollo.query works as expected

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 9
  • Comments: 15 (3 by maintainers)

Most upvoted comments

If rxjs@6 is a new dependency, shouldn’t this be a major version increment instead of 1.1.0?

We use Ionic, which depends on RxJs 5.*. How can we still use Apollo in our Ionic 4.7 Projects?

@cbyte Yes You are correct my issues are fixed by downgrading.

I have the same problème. I try to make a small project that contains strict necessary to reproduce the problem :

https://drive.google.com/file/d/1hz7O5z47hzPsR4HqZ2jixhBbs6N_S2WR/view?usp=sharing

To test, you can make

npm install
npm run dist
npm run start

Go to localhost:3000 and see the error in the console.