I’m trying to compile a elixir/phoenix app but I am getting the following error:
== Compilation error in file lib/plug/conn/utils.ex ==
** (ArgumentError) invalid right argument for operator "in", it expects a compile-time proper list or compile-time range on the right side when used in guard expressions, got: %{first: 65, last: 90, __struct__: Range, step: 1}
(elixir 1.13.4) lib/kernel.ex:4245: Kernel.raise_on_invalid_args_in_2/1
(elixir 1.13.4) expanding macro: Kernel.in/2
lib/plug/conn/utils.ex:64: Plug.Conn.Utils.mt_first/2
could not compile dependency :plug, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile plug", update it with "mix deps.update plug" or clean it with "mix deps.clean plug"
I’ve tried cleaning my build, and repulling the deps.
I’m kinda out of ideas on how to get this working : |
I use elixir 1.13.4-otp-23 here is my deps:
defp deps do
[
{:phoenix, "~> 1.6.16"},
{:phoenix_html, "~> 3.3.0"},
{:telemetry_metrics, "~> 0.6.1"},
{:telemetry_poller, "~> 1.0.0"},
{:phoenix_live_view, "~> 0.17.6"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.6.4"},
{:plug, "~> 1.10"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_ecto, "~> 4.4.0"},
{:ecto, "~> 3.9.2", override: true},
{:ecto_sql, "~> 3.9.2"},
{:postgrex, "~> 0.14-rc", override: true},
{:phoenix_live_reload, "~> 1.3"},
{:gettext, "~> 0.19"},
# {:cowboy, "~> 2.0"},
{:plug_cowboy, "~> 2.0"},
{:distillery, "~> 2.1", runtime: false},
{:trailing_format_plug, "~> 0.0.5"},
{:httpotion, "~> 3.0.2"},
{:basic_auth, "~> 2.2.2"},
{:jason, "~> 1.0"},
{:timex, "~> 3.7.7"},
{:poolboy, "~> 1.5.1"},
{:logger_file_backend, "~> 0.0.10"},
{:csv, "~> 2.4"},
{:benchee, "~> 1.1"},
{:flame_on, "~> 0.5.2"},
{:ecto_psql_extras, "~> 0.6"}
]
end