yewstack / yew-playground

https://play.yew.rs
Apache License 2.0
13 stars 3 forks source link

Trunk: no such file or directory #8

Closed weykon closed 1 year ago

weykon commented 1 year ago

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 1 year ago

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 https://github.com/yewstack/yew-playground/blob/e28b4f65f569457cde924b4d3e7f590c1e8be829/services/app-compiler/src/main.rs#L70 https://github.com/yewstack/yew-playground/blob/e28b4f65f569457cde924b4d3e7f590c1e8be829/services/app-compiler/src/main.rs#L75

I've updated the title to reflect the issue

ranile commented 1 year ago

This issue is fixed now