Escript: exception error: undefined function erlang:get_stacktrace/0

Additionally Elixir 1.8 only supports up to Erlang/OTP 22 so you should either upgrade Elixir (preferable) or downgrade Erlang/OTP.

Source: https://hexdocs.pm/elixir/master/compatibility-and-deprecations.html