While compiling a project which use elixir with phoenix web framework, the following compilation error occurs:
==> phoenix_ecto
Compiled lib/phoenix_ecto.ex
Compiled lib/phoenix_ecto/plug.ex
Compiled lib/phoenix_ecto/ison.ex
==> Compilation error on file lib/phoenix_ecto/html.ex ==
** (CompileError) ib/phoenix_ecto/html.ex:7: unknown key :impl for struct Phoenix.HTML.Form
(elixir) src/e ixir_map.erl:175: :elixir_map.--assert_struct_keys/5-1c$"011-0--/5
(elixir) src/e ixir_map.erl:48: :elixir_map.translate_struct/4
(elixir) src/e ixir_clauses.erl:36: :elixir_clauses.clause/7
(elixir) src/e ixir_def.erl:178: :elixir_def.translate_clause/7
(elixir) src/e ixir_def.erl:167: :elixir_def.translate_definition/8
[31m[1mcould not compile dependency phoenix_ecto, mix compile failed. You can recompile this dependency with 'mix deps.compile phoenix_ecto' or update it with 'mix deps.update phoenix_ecto'
How can I get my project to compile correctly?
You need to update both phoenix_ecto and phoenix_html. Try this:
mix deps.clean phoenix_ecto phoenix_html
mix deps.update phoenix_ecto phoenix_html
And you should hopefully be good to go!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With