yewstack/yew-playground

Trunk: no such file or directory

weykon opened this issue · 2 comments

weykon commented
use yew::prelude::*;

#[function_component]
fn App() -> Html {
    html! { "hello world" }
}

fn main() {
    yew::Renderer::<App>::new().render();
}

the result:

upstream connect error or disconnect/reset before headers. reset reason: remote reset
ranile commented

I added more logging and improved error handling. It seems that the trunk bin can't be located.
The lines

app_compiler: running command cmd=Command { std: "/usr/bin/trunk" "--config" "/app/Trunk.toml" "build", kill_on_drop: false }
app_compiler: running trunk failed e=Os { code: 2, kind: NotFound, message: "No such file or directory" }

are logged by

debug!(?cmd, "running command");

error!(?e, "running trunk failed");

I've updated the title to reflect the issue

ranile commented

This issue is fixed now