Closed nelsonic closed 2 years ago
It was even easier than I thought!
Renaming lib/auth_web/templates/layout/root.html.heex
to lib/auth_web/templates/layout/live.html.heex
fixed the issue.
This makes sense because the configuration in auth/lib/auth_web.ex
expects the layout file to be called live.html.heex
:
https://github.com/dwyl/auth/blob/f6a72102fd72f99ba8c42d00083e22c2fdec917a/lib/auth_web.ex#L45-L52
Working as expected: http://localhost:4000/groups
How epic is the groups
feature? 😜
Closing. ✅
This is almost certainly
PEBCAK
... but opening the issue to capture the solution incase
someoneelse
is trying to Add aLiveView
to an existing (older)Phoenix
App!My instinct is: since the
auth
project hasn't usedLiveView
in the past, we need to add it manually to enable this ... 🤞