mix deps.get ** undefined function... no such import

Ok I have successfully run iex.bat -S mix, inside ( erl ) terminal. Then following the course
The Complete Elixir and Phoenix Bootcamp
mix deps.get
Produces the following error, I went back to double check that I did not make typos:

  • ** (CompileError) iex:1: undefined function mix/1 (there is no such import)
    (elixir 1.14.0) src/elixir.erl:364: :elixir.quoted_to_erl/3
    (elixir 1.14.0) src/elixir.erl:274: :elixir.eval_forms/3
    (elixir 1.14.0) lib/module/parallel_checker.ex:100: Module.ParallelChecker.verify/1
    (iex 1.14.0) lib/iex/evaluator.ex:329: IEx.Evaluator.eval_and_inspect/3
    (iex 1.14.0) lib/iex/evaluator.ex:303: IEx.Evaluator.eval_and_inspect_parsed/3
    (iex 1.14.0) lib/iex/evaluator.ex:292: IEx.Evaluator.parse_eval_inspect/3
    (iex 1.14.0) lib/iex/evaluator.ex:187: IEx.Evaluator.loop/1
    iex(1)> *

Thanks.

Hi @kscheltema , mix deps.get is not run inside of erl or iex, it’s run from your shell.

2 Likes