This error shows up when im trying to navigate to :controller
Here is the sample code in page_controller.ex
defmodule AppWeb.PageController do
use AppWeb, :controller
def home(conn, _params) do
# The home page is often custom made,
# so skip the default app layout.
render(conn, :home, layout: false)
end
end
Log from Elixir-LS
[Warn - 11:24:37 AM] Unable to expand macro Phoenix.Endpoint.__before_compile__/1: ** (ArgumentError) could not call Module.get_attribute/2 because the module AppWeb.Endpoint is already compiled. Use the Module.__info__/1 callback or Code.fetch_docs/1 instead
(elixir 1.17.3) lib/module.ex:2350: Module.assert_not_compiled!/3
(elixir 1.17.3) lib/module.ex:1954: Module.get_attribute/7
(phoenix 1.7.14) expanding macro: Phoenix.Endpoint.__before_compile__/1
nofile: AppWeb.Endpoint (module)