Compilation Error: Cyclical Module Declaration
peake100 opened this issue · comments
Environment
- Elixir & Erlang versions (elixir --version):
Erlang/OTP 25 [erts-13.1.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.14.1 (compiled with Erlang/OTP 25)
- ExAws version
mix deps |grep ex_aws
:
* ex_aws (Hex package) (mix)
locked at 2.4.0 (ex_aws) 66dd0bac
* ex_aws_dynamo (Hex package) (mix)
locked at 4.2.0 (ex_aws_dynamo) 4464ae7a
* ex_aws_firehose (Hex package) (mix)
locked at 2.0.1 (ex_aws_firehose) f9c8d35a
* ex_aws_s3 (Hex package) (mix)
locked at 2.3.3 (ex_aws_s3) 0044f0b6
* ex_aws_ses (Hex package) (mix)
locked at 2.4.1 (ex_aws_ses) dddac42d
* ex_aws_sns (Hex package) (mix)
locked at 2.3.0 (ex_aws_sns) 402f0129
* ex_aws_sqs (Hex package) (mix)
locked at 3.3.1 (ex_aws_sqs) 47d8fc29
- HTTP client version. IE for hackney do
mix deps | grep hackney
:
* hackney (Hex package) (rebar3)
locked at 1.18.1 (hackney) a4ecdaff
Current behavior
When compiling a project that depends on ex_aws
, I get the following error:
==> dynasaur
Compiling 36 files (.ex)
== Compilation error in file lib/dynasaur/dynamo/jt_team.ex ==
** (CompileError) lib/dynasaur/dynamo/jt_team.ex:3: cannot define module ExAws.Dynamo.Decodable.Kernel because it is currently being defined in lib/dynasaur/dynamo/project_preference.ex:3
lib/dynasaur/dynamo/jt_team.ex:3: (module)
Expected behavior
The module compiles correctly.
I have no idea what dynasaur is, but it isn't part of ExAws so I can't really help you with compilation errors in it.