As I followed phoenix-1.6.x-1.7-upgrade.md · GitHub for Phoenix migration from 1.6 to 1.7, I wanted to regenerate Authentication as I did touched it yet. When I run
phx.gen.auth, it generates a bunch of files as expected (and changes some existing files), but compilation fails:
== Compilation error in file lib/myapp_web/controllers/user_session_html.ex == ** (UndefinedFunctionError) function MyAppWeb.html/0 is undefined or private MyAppWeb.html() expanding macro: MyAppWeb.__using__/1 lib/myapp_web/controllers/user_session_html.ex:2: MyAppWeb.UserSessionHTML (module) (elixir 1.15.4) expanding macro: Kernel.use/2 lib/myapp_web/controllers/user_session_html.ex:2: MyAppWeb.UserSessionHTML (module)
Version of Elixir and Phoenix are up-to-date.
Does anyone have an idea how to fix this error? I have not found anything useful on the internet yet.
Thank you for any help!