Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

The value definition can't be found #135

Open
painedpineapple opened this issue Jul 10, 2020 · 1 comment
Open

The value definition can't be found #135

painedpineapple opened this issue Jul 10, 2020 · 1 comment

Comments

@painedpineapple
Copy link

I'm following the basic useQuery example (https://github.com/reasonml-community/reason-apollo-hooks#usequery-arrow_up) but am receiving the following error:

161 ┆ [@react.component]
  162 ┆ let make = () => {
  163 ┆   let (simple, _) = useQuery(UsersQuery.definition);

  The value definition can't be found in UsersQuery

I've created a small reproduction of the issue in this repo: https://github.com/thislogancall/apollo-graphql-definition-repro

@painedpineapple
Copy link
Author

Per assistance in Discord by hawkeye, It looks like the docs for the graphql_ppx should point to https://github.com/reasonml-community/graphql-ppx/tree/v0.7.1.

The @reason-community versions "^1.0.0-beta.18", and "^0.0.1"don't work with reason-apollo-hooks "^6.0.1"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant