liveview-native / liveview-client-html

MIT License
2 stars 1 forks source link

The generated app_native.ex file uses MyApp.Layouts.HTML instead of MyApp.Layouts #2

Open BrooklinJazz opened 2 months ago

BrooklinJazz commented 2 months ago

Generating the app_native.ex file creates the following:

  def live_view() do
    quote do
      use LiveViewNative.LiveView,
        formats: [
          :html,
          :swiftui
        ],
        layouts: [
          # notice ChatWeb.Layouts.HTML
          html: {ChatWeb.Layouts.HTML, :app},
          swiftui: {ChatWeb.Layouts.SwiftUI, :app}
        ]

      unquote(verified_routes())
    end
  end

When it should be ChatWeb.Layouts. This results in the following error when running the server: no "app" html template defined for ChatWeb.Layouts.HTML (the module does not exist)