1
を見つけることができませんでした、と私はそのような問題に直面:私のmix.exsでフェニックスモジュールExAws.S3.Clientがロードされていないと私は図書館<a href="https://github.com/CargoSense/ex_aws" rel="nofollow">https://github.com/CargoSense/ex_aws</a>を使用
== Compilation error on file web/models/s3.ex ==
** (CompileError) web/models/s3.ex:2: module ExAws.S3.Client is not loaded and could not be found
(elixir) expanding macro: Kernel.use/2
web/models/s3.ex:2: Minion.S3 (module)
(elixir) lib/kernel/parallel_compiler.ex:116: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
:
def application do
[mod: {Minion, []},
applications: [:phoenix, ... :ex_aws, :httpoison, :poison]]
end
...
defp deps do
[{:phoenix, "~> 1.2.1"},
...
{:ex_aws, "~> 1.0.0-beta0"},
{:poison, "~> 2.0"},
{:httpoison, "~> 0.8"}]
end
を私config.exs:
config :minion, :ex_aws,
access_key_id: "...",
secret_access_key: "...",
region: "us-east-1",
s3: [
scheme: "http://",
host: "...",
region: "us-east-1"
]
私s3.ex:
defmodule Minion.S3 do
use ExAws.S3.Client, otp_app: :minion
end
バージョン> = 1.0.0でこの問題に
「ExAws.S3.Client」モジュールはロードされていません。あなたの「ExAws.S3.Client」モジュールはどこですか? – TheAnh
@ TheAnhLe depsと 'applications:[phoenix、...:ex_aws、:httpoison、:poison]で十分だと思います。モジュールをロードする必要がある場合でもですか? –
私は最新のリリースをチェックし、モジュール名は 'ExAws.S3.Client'ではありません。おそらく古いガイドバージョンに従います。 – TheAnh