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

[apollo-client] "indexer property is missing" when calling apolloClient.query() #2233

Open
jhpedemonte opened this issue May 17, 2018 · 3 comments
Labels
incomplete libdef Related to a library definition

Comments

@jhpedemonte
Copy link

Not sure if it's an issue with the apollo-client libdef or with Flow itself, but with latest code (after PR #2172 I think) I get the error Cannot call this._apolloClient.query with object literal bound to options because an indexer property is missing

See this flow try

cc @TLadd

@TLadd
Copy link
Contributor

TLadd commented May 17, 2018

I think it's a flow bug. Filed here: facebook/flow#6321

I also think we could probably work around it pretty easily by just changing interfaces to types and extends to intersections like this. Want to make a PR?

@gantoine gantoine added incomplete libdef Related to a library definition labels May 23, 2018
@jedwards1211
Copy link
Contributor

@TLadd agreed, I'm about to PR that exact change to react-apollo

@jedwards1211
Copy link
Contributor

Sigh nevermind...other confusing errors are resulting from changing interfaces to shape types.
The distinction between the two gets really annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete libdef Related to a library definition
Projects
None yet
Development

No branches or pull requests

4 participants