Erlang dependency doesn't compile with mix

I had similar, but not the same issue before, also I use linux not OSX
I managed to solve it by reinstalling erlang and elixir.

https://elixirforum.com/t/cannot-compile-unicode-util-compat/6724