I started to read the book Programming-Phoenix-LIveView. I created the Phoenix project Pento from chapter 1 "Get to Know LiveView.
When I entered the command: mix phx.server I got a compilation error.
== Compilation error in file lib/pento_web/live/wrong_live.ex ==
** (CompilationError in file lib/pento/wrong_live.ex:11: undefined function link/1 (expected
PentoWeb.WrongLIve to define such a function or for it to be imported, but none are
Going off of how your app has an error_view.ex file, you’re likely running on older versions of Phoenix and LiveView. The book’s code assumes Phoenix v1.7 and that’s also when Phoenix changed how it handles views. Changelog for v1.7 — Phoenix v1.7.0
I’d suggest running mix local.phx to update your Phoenix project generator and then creating a new app.