2

I'm trying to run the mix release task to create a production phoenix server.

I was having an issue with poison so added the workaround from here. However now when I run the release task I get the following error:

Errors generating release 
      Duplicated modules: 
    'Elixir.Poison.Encoder.Any' specified in poison and myappname

I tried adding the following line in lib/myappname.ex based on instructions from elixir getting started. But it didn't have any effect.

defmodule Myappname do
  use Application

  @derive [Poison.Encoder]
  # ...
Razzildinho
  • 2,564
  • 1
  • 19
  • 32

1 Answers1

1

That workaround should be avoided in most recent releases of poison. If serving json you should read this answer.

Community
  • 1
  • 1
Razzildinho
  • 2,564
  • 1
  • 19
  • 32