AshAdmin.PageLive.__live__0 is undefined

When I try to use AshAdmin and navigate to the /admin endpoint I get the error above. I am using: {:ash, "~> 2.1"}, {:ash_admin, "~> 0.6.1"}, {:ash_phoenix, "~> 1.1"}, {:phoenix, "~> 1.6.14"}, {:phoenix_ecto, "~> 4.4"}, {:phoenix_html, "~> 3.0"}, {:phoenix_live_view, "~> 0.18"}, No doubt it is user error, any idea what I might be doing wrong? Is AshAdmin ok to use with LiveView 0.18?
13 Replies
ZachDaniel
ZachDaniel•3y ago
It should be! Let me try out those same dependency versions and see what happens 🙂 Alright, so while I did find a few small fixes to make, I didn't see anything that would cause this issue I set it up to use all the same versions as well can I see what you have in your router?
ZachDaniel
ZachDaniel•3y ago
🤔 that looks fine to me have you tried doing a mix compile --force? Perhaps its gotten into a weird state somehow?
peterhartmanuk
peterhartmanukOP•3y ago
No change. 😦
peterhartmanuk
peterhartmanukOP•3y ago
No description
ZachDaniel
ZachDaniel•3y ago
ohhhh its the scope
peterhartmanuk
peterhartmanukOP•3y ago
VeeWeb vs Vee ?
ZachDaniel
ZachDaniel•3y ago
its prefixing the module name that ash_admin is using with VeeWeb
scope "/" do
pipe_through :browser
ash_admin "/admin"
end

scope "/", VeeWeb do
pipe_through :browser
get "/", PageController, :index
end
scope "/" do
pipe_through :browser
ash_admin "/admin"
end

scope "/", VeeWeb do
pipe_through :browser
get "/", PageController, :index
end
That should fix it, moving it to its own scope w/o a module prefix gotta run to lunch, will check back in afterwards
peterhartmanuk
peterhartmanukOP•3y ago
🎉
No description
peterhartmanuk
peterhartmanukOP•3y ago
Thank you so much! Is there some way I can buy you a virtual beer?
ZachDaniel
ZachDaniel•3y ago
You could sponsor the project, IIRC there is the ability to do one time sponsorships 🙂 https://github.com/sponsors/zachdaniel
GitHub
Sponsor @zachdaniel on GitHub Sponsors
I'm the author of the Ash Framework, a declarative, resource-oriented application framework for Elixir. My ultimate goal is to enable developers to build powerful, declarative applications, and...
peterhartmanuk
peterhartmanukOP•3y ago
Done. Thanks again Zach!
ZachDaniel
ZachDaniel•3y ago
Any time 🙂 And thanks for the sponsorship!

Did you find this page helpful?