Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
orientalArg opened this issue Jan 30, 2025 · 0 comments
Open

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

orientalArg opened this issue Jan 30, 2025 · 0 comments

Comments

@orientalArg
Copy link

orientalArg commented Jan 30, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant