Trying to setup the live_view platform

hell one and all,

I’m trying to setup live_view to learn the platform, using version 16 and Keep getting this error:

undefined function phoenix_live_flash/2

this line is in the router plug section like so:

  pipeline :browser do
    plug(:accepts, ["html"])
    plug(:fetch_session)
    # plug(:fetch_flash)
    plug(:phoenix_live_flash)
    # plug(Phoenix.LiveView.Flash)
    plug(:protect_from_forgery)
    plug(:put_secure_browser_headers)
  end

Hi @lc0815 - if you’re trying to replace the dead view :fetch_flash with a LiveView equivalent, it’s :fetch_live_flash (see phoenix_live_view/router.ex at bae735e0998c13aa9bb0518021092524d24479d1 · phoenixframework/phoenix_live_view · GitHub)

thanks @crispinb

that worked

1 Like