2016-01-30 50 views
3

我試圖將使用rebar3構建的REST API示例轉換爲rebar3版本(http://jordenlowe.com/title/Explain_like_I_am_5_-_Erlang_REST_Framework_Cowboy)。我已將jsx添加到app.src。 這可能是什麼原因?還有什麼我需要做更多的時候做這個rebar3版本?rebar3:依賴關係無法訪問

出現此錯誤。

===> Failed to solve release: 
Dependency jsx is specified as a dependency but is not reachable by the system. 
+0

'rebar3'的合着者在erlang-questions郵件列表中發佈了[答案](http://erlang.org/pipermail/erlang-questions/2016-January/087490.html)。 –

回答

1

將jsx添加到app.src文件是不夠的。您需要添加此依賴項(jsx)rebar.config文件。在rebar.config

你DEPS部分必須是這樣的

{deps, [ 
      {cowboy, "1.0.1"}, % package 
      {jsx, "2.8.0"} 
    ]}. 
0

感謝您的答案,並感謝編輯@Hamidreza Soleimani。 我將此行添加到rebar.confid,錯誤消失。

{JSX,{混帳, 「混帳://github.com/talentdeficit/jsx.git」,{標籤, 「v2.7.1」}}}

再次感謝。