在使用phoenix Web框架编译使用elixir的项目时,发生以下编译错误:
==> 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'
如何使我的项目正确编译?
最佳答案
您需要同时更新phoenix_ecto和phoenix_html。试试这个:
mix deps.clean phoenix_ecto phoenix_html
mix deps.update phoenix_ecto phoenix_html
希望您一切顺利!
关于web - 文件lib/phoenix_ecto/html.ex上的编译错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31720200/