Skip to content

Problem when running webview with version "@^0.9.0" #191

@orientalArg

Description

@orientalArg

The command I was running: deno run --allow-all webview.ts

One of the multiple errors that I encountered:
Gtk-Message: 23:01:29.666: Failed to load module "xapp-gtk3-module"

This is the simple file that I was running

// webview.ts
import * as Webview from "jsr:@webview/webview@^0.8.1";

const html = `
  <html>
  <body>
    <h1>Hello from deno v</h1>
  </body>
  </html>
`;

const webview = new Webview.Webview();

webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
webview.run();

❌ What I've tried and didn't work:

  • try installing libwebkit on my debian machine
  • try multiple flags, some of which are -A -Ar --unstable-ffi --i
  • try the demo deno run --allow-all https://deno.land/x/webview/examples/local.ts

✅ Solved by changing the import to: import * as Webview from "jsr:@webview/webview@^0.8.1";

I think the demonstration failed because it is predetermined to the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    linuxRelated to linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions