I’m having this same issue, even recompiling absinthe doesn’t fix it.
{:phoenix, "~> 1.4.15"},
{:phoenix_pubsub, "~> 1.1"},
{:phoenix_ecto, "~> 4.0"},
{:gettext, "~> 0.11"},
{:nuki, in_umbrella: true},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:dataloader, "~> 1.0"},
{:absinthe_plug, "~> 1.4"},
{:absinthe, "~> 1.4"},
{:absinthe_ecto, "~> 0.1.3"}
I’m in an umbrella application, added absinthe and dataloader to the phoenix app within the umbrella.
Tried deleting _build
and deps
but the same result.
defmodule NukiWeb.Schema.ContentTypes do
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
use Absinthe.Schema.Notation
# ====
$ iex -S mix phx.server
Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
==> nuki_web
Compiling 12 files (.ex)
== Compilation error in file lib/nuki_web/schema/content_types.ex ==
** (CompileError) lib/nuki_web/schema/content_types.ex:12: undefined function dataloader/1
(elixir 1.10.2) src/elixir_locals.erl:114: anonymous fn/3 in :elixir_locals.ensure_no_undefined_local/3
(stdlib 3.6) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir 1.10.2) lib/kernel/parallel_compiler.ex:304: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7
Appreciate any help