在使用凤凰web框架编译使用长生不老药的项目时,会发生以下编译错误:
==> 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'如何使我的项目正确编译?
发布于 2015-07-31 02:15:25
我忘记用mix do deps.get, compile安装和编译应用程序的源代码和依赖项。我只是在菲尼克斯目录下安装和编译。然后像上面那样发出错误。在我的应用程序下安装和编译之后。它做得很好,没有任何错误。
发布于 2015-07-30 18:58:35
您需要同时更新phoenix_ecto和phoenix_html。试试这个:
mix deps.clean phoenix_ecto phoenix_html
mix deps.update phoenix_ecto phoenix_html希望你能好起来!
发布于 2015-07-30 10:28:25
正如错误消息中明确提到的,请尝试:
mix deps.compile phoenix_ecto https://stackoverflow.com/questions/31720200
复制相似问题