AshPostgres compilation error

While compiling ash_postgres 1.3.14 I get the following error and don't really know wether it's something related with my codebase or it is a library error.
$ mix deps.compile ash_postgres
==> ash_postgres
Compiling 38 files (.ex)

== Compilation error in file lib/expr.ex ==
** (CompileError) lib/expr.ex:310: Ash.Query.Function.StringJoin.__struct__/0 is undefined, cannot expand struct Ash.Query.Function.StringJoin. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
expanding struct: Ash.Query.Function.StringJoin.__struct__/0
lib/expr.ex:310: AshPostgres.Expr.do_dynamic_expr/5
could not compile dependency :ash_postgres, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_postgres", update it with "mix deps.update ash_postgres" or clean it with "mix deps.clean ash_postgres"
$ mix deps.compile ash_postgres
==> ash_postgres
Compiling 38 files (.ex)

== Compilation error in file lib/expr.ex ==
** (CompileError) lib/expr.ex:310: Ash.Query.Function.StringJoin.__struct__/0 is undefined, cannot expand struct Ash.Query.Function.StringJoin. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
expanding struct: Ash.Query.Function.StringJoin.__struct__/0
lib/expr.ex:310: AshPostgres.Expr.do_dynamic_expr/5
could not compile dependency :ash_postgres, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_postgres", update it with "mix deps.update ash_postgres" or clean it with "mix deps.clean ash_postgres"
I'm running elixir 1.14 and this is what my deps look like:
defp deps do
[
{:ash, "~> 2.6.8"},
{:ash_json_api, "~> 0.31.1"},
{:ash_postgres, "~> 1.3.14"}
]
end
defp deps do
[
{:ash, "~> 2.6.8"},
{:ash_json_api, "~> 0.31.1"},
{:ash_postgres, "~> 1.3.14"}
]
end
2 Replies
ZachDaniel
ZachDaniel3y ago
You'll need to update ash as well I'm surprised it didn't require you to do that
saul.no
saul.noOP3y ago
Awesome, can't believe I missed that. Thank you!

Did you find this page helpful?