Error while compiling with mix dep.compile for Elixir project with Broadway Dashboard library 0.4


I’m encountering an issue while compiling my Elixir project with the Broadway Dashboard library 0.4 version. The error message I receive is as follows:

==> erlex
could not compile dependency :erlex, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile erlex --force", update it with "mix deps.update erlex" or clean it with "mix deps.clean erlex"
** (UndefinedFunctionError) function :yecc.format_error/1 is undefined (module :yecc is not available)
    :yecc.format_error({:conflicts, 27, 0})
    (mix 1.15.0) lib/mix/compilers/erlang.ex:301: anonymous fn/3 in Mix.Compilers.Erlang.show_warnings/1
    (elixir 1.15.0) lib/enum.ex:2510: Enum."-reduce/3-lists^foldl/2-0-"/3
    (mix 1.15.0) lib/mix/compilers/erlang.ex:298: Mix.Compilers.Erlang.show_warnings/1
    (mix 1.15.0) lib/mix/compilers/erlang.ex:108: Mix.Compilers.Erlang.compile/5
    (mix 1.15.0) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.15.0) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
    (mix 1.15.0) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
make: *** [Makefile:108: ci-setup] Error 1
Error: Process completed with exit code 2.

I’m unsure about the connection between this error and the new version of the Broadway Dashboard library. My project also uses Phoenix Live Dashboard 0.8 version.

Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you!

1 Like

Hi @amal-sultan how did you install erlang?

1 Like