added ash_admin as a depencency to the project and got this error
➜ tryash git:(main) ✗ mix deps.compile ash_admin
warning: the :phoenix compiler is no longer required in your mix.exs.
Please find the following line in your mix.exs and remove the :phoenix entry:
compilers: [..., :phoenix, ...] ++ Mix.compilers(),
(phoenix 1.7.0-rc.2) lib/mix/tasks/compile.phoenix.ex:8: Mix.Tasks.Compile.Phoenix.run/1
(mix 1.14.2) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
(mix 1.14.2) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.14.2) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4
(mix 1.14.2) lib/mix/tasks/compile.all.ex:59: Mix.Tasks.Compile.All.with_logger_app/2
(mix 1.14.2) lib/mix/tasks/compile.all.ex:33: Mix.Tasks.Compile.All.run/1
==> ash_admin
Compiling 29 files (.ex)
== Compilation error in file lib/ash_admin/layout_view.ex ==
** (CompileError) lib/ash_admin/layout_view.ex:3: module Phoenix.View is not loaded and could not be found
(elixir 1.14.2) expanding macro: Kernel.use/2
lib/ash_admin/layout_view.ex:3: AshAdmin.LayoutView (module)
expanding macro: AshAdmin.Web.__using__/1
lib/ash_admin/layout_view.ex:3: AshAdmin.LayoutView (module)
(elixir 1.14.2) expanding macro: Kernel.use/2
lib/ash_admin/layout_view.ex:3: AshAdmin.LayoutView (module)
could not compile dependency :ash_admin, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_admin", update it with "mix deps.upda
te ash_admin" or clean it with "mix deps.clean ash_admin"
On discord, Zach suggested to add phoenix_view to my projects dependencies.
Doing so removed the error but now mix is warning with:
warning: Phoenix.View.template_path_to_name/2 defined in application :phoenix_view is used by the current application but the current application does not depend on :phoenix_view. To fix this, you must do one of:
1. If :phoenix_view is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2. If :phoenix_view is a dependency, make sure it is listed under "def deps" in your mix.exs
3. In case you don't want to add a requirement to :phoenix_view, you may optionally skip this warning by adding [xref: [exclude: [Phoenix.View]]] to your "def project" in mix.exs
lib/ash_admin/layout_view.ex:1: AshAdmin.LayoutView
Generated ash_admin app
To Reproduce
Follow instructions to configure ash in a fresh project.
added ash_admin as a depencency to the project and got this error
On discord, Zach suggested to add phoenix_view to my projects dependencies. Doing so removed the error but now mix is warning with:
To Reproduce
Follow instructions to configure ash in a fresh project.
Expected behavior
a clean install.
Runtime
deps from the project
Additional context
Add any other context about the problem here.