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

0.6.4 fails to compile #28

Open
binaryape opened this issue Jun 2, 2021 · 2 comments
Open

0.6.4 fails to compile #28

binaryape opened this issue Jun 2, 2021 · 2 comments

Comments

@binaryape
Copy link

Hi,

I can't get a Phoenix app using Common Graphql Client 0.6.4 to compile - it produces this error:

warning: variable "opts" does not exist and is being expanded to "opts()", please use parentheses to remove the ambiguity or change the variable name
  lib/common_graphql_client/client.ex:236: Multiverse.Loader.Client.connection/1


== Compilation error in file lib/multiverse/loader/client.ex ==
** (CompileError) lib/common_graphql_client/client.ex:236: undefined function opts/0
    (elixir 1.12.1) src/elixir_locals.erl:114: anonymous fn/3 in :elixir_locals.ensure_no_undefined_local/3
    (stdlib 3.15) erl_eval.erl:685: :erl_eval.do_apply/6
    (elixir 1.12.1) lib/kernel/parallel_compiler.ex:319: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7

If I switch back to version 0.6.3 everything works again.

I'm using Erlang 24 and Elixir 12.1.

I haven't had enough time to investigate properly yet - sorry about the lack of details.

Pete

@Rodeoclash
Copy link

I can confirm I'm seeing this as well

@Rodeoclash
Copy link

Looks like this has been fixed in master but we need a release. In the mean time you can use:

{:common_graphql_client, git: "https://github.com/annkissam/common_graphql_client.git", branch: :master}

Which seems to compile ok. I haven't actually tested the library works yet though as I'm still piecing a working example together.

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

No branches or pull requests

2 participants