Telemetry error when I use ejabberd dependency

Environment

ejabberd version: 20.04
Erlang version: Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
OS: MacOs (Catalina)

Errors from error.log/crash.log

13:49:35.512 [info] Application phoenix exited: exited in: Phoenix.start(:normal, [])

    ** (EXIT) exited in: :gen_server.call(:telemetry_handler_table, {:insert, {Phoenix.Logger, [:phoenix, :channel_handled_in]}, [[:phoenix, :channel_handled_in]], #Function<8.52195587/4 in Phoenix.Logger.install/0>, :ok})
        ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started

13:49:35.516 [info]  Application eex exited: :stopped
==> phoenix_live_dashboard
could not compile dependency :phoenix_live_dashboard, "mix compile" failed. You can recompile this dependency with "mix deps.compile phoenix_live_dashboard", update it with "mix deps.update phoenix_live_dashboard" or clean it with "mix deps.clean phoenix_live_dashboard"
** (MatchError) no match of right hand side value: {:error, {:phoenix, {:bad_return, {{Phoenix, :start, [:normal, []]}, {:EXIT, {:noproc, {:gen_server, :call, [:telemetry_handler_table, {:insert, {Phoenix.Logger, [:phoenix, :channel_handled_in]}, [[:phoenix, :channel_handled_in]], #Function<8.52195587/4 in Phoenix.Logger.install/0>, :ok}]}}}}}}}
    (phoenix 1.5.1) lib/mix/tasks/compile.phoenix.ex:11: Mix.Tasks.Compile.Phoenix.run/1
    (mix 1.10.3) lib/mix/task.ex:330: Mix.Task.run_task/3
    (mix 1.10.3) lib/mix/tasks/compile.all.ex:76: Mix.Tasks.Compile.All.run_compiler/2
    (mix 1.10.3) lib/mix/tasks/compile.all.ex:56: Mix.Tasks.Compile.All.do_compile/4
    (mix 1.10.3) lib/mix/tasks/compile.all.ex:27: anonymous fn/2 in Mix.Tasks.Compile.All.run/1
    (mix 1.10.3) lib/mix/tasks/compile.all.ex:43: Mix.Tasks.Compile.All.with_logger_app/2
    (mix 1.10.3) lib/mix/task.ex:330: Mix.Task.run_task/3
    (mix 1.10.3) lib/mix/tasks/compile.ex:96: Mix.Tasks.Compile.run/1
    (mix 1.10.3) lib/mix/task.ex:330: Mix.Task.run_task/3
    (mix 1.10.3) lib/mix/tasks/deps.compile.ex:163: anonymous fn/2 in Mix.Tasks.Deps.Compile.do_mix/2
    (mix 1.10.3) lib/mix/project.ex:352: Mix.Project.in_project/4
    (elixir 1.10.3) lib/file.ex:1544: File.cd!/2
    (mix 1.10.3) lib/mix/dep.ex:269: Mix.Dep.in_dependency/3
    (mix 1.10.3) lib/mix/tasks/deps.compile.ex:81: anonymous fn/4 in Mix.Tasks.Deps.Compile.compile/2
    (elixir 1.10.3) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.10.3) lib/mix/tasks/deps.compile.ex:71: Mix.Tasks.Deps.Compile.compile/2
    (mix 1.10.3) lib/mix/tasks/deps.loadpaths.ex:89: Mix.Tasks.Deps.Loadpaths.deps_check/2
    (mix 1.10.3) lib/mix/tasks/deps.loadpaths.ex:28: Mix.Tasks.Deps.Loadpaths.run/1
    (mix 1.10.3) lib/mix/task.ex:330: Mix.Task.run_task/3
    (mix 1.10.3) lib/mix/task.ex:354: Mix.Task.get_task_or_run/3

Bug description

Hi, I’m using ejabberd and I’ve set up everything it’s running fine when I have installed and setup phoenix project locally. But when I upload this on github and suppose someone clone the repository on local machine then it would lead to this error. This is strange because if he also setup the phoenix project locally and setup the ejabberd it’s working fine for him. So I’m trying to guess that it has something to do with build file. So I want to understand about this error. Is this an error related to ejabberd or something?

Earlier thread here. Embedding ejabberd in a Phoenix app