你好,我用 phoenix 框架创建了 Elixir 项目。当我构建该文件时,有 yaml 文件,我收到此错误

1 elixir-mix elixir ecto phoenix-framework

== Compilation error in file lib/ecto/query.ex ==
** (Kernel.TypespecError) lib/ecto/query.ex:428: type dynamic/0 is a built-in type and it cannot be redefined
    (elixir 1.15.0) lib/kernel/typespec.ex:961: Kernel.Typespec.compile_error/2
    (stdlib 5.0.1) lists.erl:1599: :lists.foldl_1/3
    (elixir 1.15.0) lib/kernel/typespec.ex:226: Kernel.Typespec.translate_typespecs_for_module/2
could not compile dependency :ecto, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ecto --force", update it with "mix deps.update ecto" or clean it with "mix deps.clean ecto"
ERROR: Service 'cense_live_chat' failed to build: The command '/bin/sh -c mix do compile' returned a non-zero code: 1
Run Code Online (Sandbox Code Playgroud)

为了构建 yam 文件,我也启动了 Postgres 服务。我尝试使用错误中显示的命令mix deps.compile ecto --force,使用更新它mix deps.update ecto或使用清理它mix deps.clean ecto。所以有人知道如何处理上述错误吗???

Yat*_*ngh 5

将 ecto 版本更新{:ecto, "~> 3.10"}为最新 OTP 和 ecto 具有dynamic共同类型的版本。因此 ecto 将名称更新为dynamic_exprso 以解决此问题。升级 ecto 或降级 OTP。