elixir-gettext / gettext

Internationalization and localization support for Elixir.
https://hexdocs.pm/gettext
469 stars 87 forks source link

Phoenix compiler causes issues with v0.20 #319

Closed berts83231 closed 2 years ago

berts83231 commented 2 years ago

This is fixed. This is a reference for other people.

After updating to {:gettext, "~> 0.20.0"}, the command MIX_ENV=test mix compile would continually loop.

I think the issue is because the phoenix compiler was deprecated when using newer version of Elixir. \ https://hexdocs.pm/phoenix/Mix.Tasks.Compile.Phoenix.html

Update mix.exs to only include the default compilers.

  use Mix.Project
  def project do
    [
      compilers: Mix.compilers(), # OLD [:phoenix, :gettext] ++ Mix.compilers()
    ]
  end