Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compilation error on file lib/phoenix_ecto/html.ex

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?

like image 578
Thant Shwe Aung Avatar asked Jul 30 '15 09:07

Thant Shwe Aung


1 Answers

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!

like image 110
José Valim Avatar answered Sep 28 '22 07:09

José Valim