This is the first time I’ve ever experienced this, it’s extremely odd.
iex -S mix in my console and am trying to call a module and function. But I get this error:
iex(1)> Example.RecipeQueries.get_all ** (UndefinedFunctionError) function Example.RecipeQueries.get_all/0 is undefined (module Example.RecipeQueries is not available) Example.RecipeQueries.get_all() iex(1)> Example. Application Mixfile Repo hello/0
I’ve never had this problem before. I deleted _build folder in the root umbrella folder and it still doesn’t work.
The module is declared in
defmodule Example.RecipeQueries do def get_all do Repo.all(from Recipes) end end
What do I look for to fix this bug?