jeddeloh / rescript-apollo-client

ReScript bindings for the Apollo Client ecosystem
MIT License
126 stars 18 forks source link

Unable to run the `EXAMPLE` #7

Closed JasoonS closed 4 years ago

JasoonS commented 4 years ago

When I try run the example I get the following output:image

I tried this at various recent commits including latest master and the tagged branch for v0.0.1-alpha.2.

I'm using npm v12.18.2, and simply run yarn in the EXAMPLES directory then yarn start to get the error.

Thanks in advance

JasoonS commented 4 years ago

Ok, update, I switched to the branch at tag v0.0.1-alpha.1 and it worked when I commented out the following line (obviously just a typo): image

I'll start using it from there

jeddeloh commented 4 years ago

It's saying unknown option '-template-tag-return-type=... which means graphql-ppx needs to be updated. I just released alpha.3. Give that a try and let me know if you encounter any issues. Thanks!

jeddeloh commented 4 years ago

Also note there are some configuration changes required: https://github.com/jeddeloh/reason-apollo-client/releases

JasoonS commented 4 years ago

Ah, ok thanks, I found the issue. I'll make a quick PR.

It looks like template-tag-return-type was renamed to template-tag in the latest version. :)