liveview-native / liveview-native/liveview-client-html
The generated app_native.ex file uses MyApp.Layouts.HTML instead of MyApp.Layouts
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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