Programming Phoenix LiveView B10: PentoWeb.LayoutView module does not exist (page 56)

The code example explicitly adds a layout to the live session used for WrongLive:

    root_layout: {PentoWeb.LayoutView, :root},

This message is displayed when the web page is rendered:

no “root” html template defined for PentoWeb.LayoutView (the module does not exist)

The code example on page 49 shows a different module name, Layouts.

pipeline :browser do
  ...
  plug :put_root_layout, {PentoWeb.Layouts, :root}
  ...
end

The web page renders without error after changing LayoutView to Layouts:

    root_layout: {PentoWeb.Layouts, :root},
3 Likes

Thanks, that solved my problem.