I am trying to run a calculator demo from ExActor Demos. It requires adding the new ExActor module as a dependency in the mix.exs
file as following.
defp deps do
[
{:exactor, "~> 2.2.3", warn_missing: false}
]
end
I did mix deps.get
and mix deps.update --all
to download the dependency. However, when the I ran the project using mix run -e CalculatorDemo.exs
, it throws the following error.
mycom@MACHINE:~/calculator$ mix run -e CalculatorDemo.run
Compiling 2 files (.ex)
== Compilation error in file lib/calculator.ex ==
** (CompileError) lib/calculator.ex:2: module ExActor is not loaded and could not be found
(elixir) expanding macro: Kernel.use/1
lib/calculator.ex:2: Calculator (module)
I am new to Elixir and couldn't find any helpful sources to resolve the above. Any comments on what am I doing wrong here?