liveview-native / liveview-native/liveview-client-html

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

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Elixir
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Generating the app_native.ex file creates the following:

```elixir
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)`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the generator that emits app_native.ex and reproduce the generated layout configuration from the issue. Compare the HTML layout module reference with the expected ChatWeb.Layouts value, then run the server to verify the missing-template error is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.