ITADN

desktop: windows webview fails to launch

#35645Openondras 创建于 2026-06-30
O
ondrascommented
`deno desktop` build that uses the `webview` backend results in a stuck empty loading window: <img width="986" height="744" alt="Image" src="https://github.com/user-attachments/assets/4ea7e554-9e75-44b6-9e19-32ba3e83740c" /> ``` $ deno -v deno 2.9.0+99a45db ``` ```ts // index.ts const win = new Deno.BrowserWindow({ title: "My App" }); win.bind("ping", async () => { return "pong"; }); async function handler(request: Request): Promise<Response> { return new Response(` <button onclick=bindings.ping().then(alert)>ping</button> `, { headers: {"content-type":"text/html"} }); } Deno.serve(handler); ``` OS: Windows 11 Compilation command line: ``` deno desktop -A --backend webview --no-check --target x86_64-pc-windows-msvc index.ts ```
1 条评论