2016-06-21 213 views
2

错误如“Phoenix.HTML.Engine.init/1未定义或私有”和“Plug.Conn .__结构__/1未定义”。当我想开始我的凤凰应用与mix phoenix.server我得到了错误:我升级到Elixir 1.3后升级Elixir

== Compilation error on file web/views/page_view.ex == 
** (UndefinedFunctionError) function Phoenix.HTML.Engine.init/1 is undefined or private 

试图通过升级库,来修正它,我还有其他的类似错误:

** (CompileError) lib/poison/parser.ex:11: Poison.SyntaxError.__struct__/1 is undefined, cannot expand struct Poison.SyntaxError 

== Compilation error on file lib/plug/test.ex == 
** (CompileError) lib/plug/test.ex:53: Plug.Conn.__struct__/1 is undefined, cannot expand struct Plug.Conn 
    (stdlib) lists.erl:1353: :lists.mapfoldl/3 

有什么建议吗?

回答

3

什么似乎解决它,我被强迫依赖于编译:

mix deps.compile --force 

如果你尝试运行测试时错误,请尝试:

MIX_ENV=test mix deps.compile --force