For page 20 (WrongLive example, numbers 1-10 game) I was getting a similar error. The Elixir VS code plugin generated:
defmodule PentoWeb.Live.WrongLive do
use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}
but, as the book says, this is correct:
defmodule PentoWeb.WrongLive do
use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}
I hope I don’t have to fight with autocomplete too often