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

two examples on the main page might need to be updated #167

Open
ds604 opened this issue Apr 3, 2024 · 1 comment
Open

two examples on the main page might need to be updated #167

ds604 opened this issue Apr 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ds604
Copy link

ds604 commented Apr 3, 2024

If I try to run this example from the main page

deno run -Ar --unstable https://deno.land/x/webview/examples/local.ts

I get the following error:

Warning Implicitly using latest version (0.8.0) for https://deno.land/x/webview/examples/local.ts
error: Relative import path "@denosaurs/plug" not prefixed with / or ./ or ../
    at https://deno.land/x/[email protected]/src/ffi.ts:3:34

The example above this one gives the same error. Adding the jsr prefix lets it run correctly:

deno run -Ar --unstable - <<-"EOF"
import { Webview } from "jsr:@webview/webview";

const html = `
  <html>
  <body>
    <h1>Hello from deno v${Deno.version.deno}</h1>
  </body>
  </html>
`;

const webview = new Webview();

webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
webview.run();
EOF
@kuchta
Copy link

kuchta commented Apr 3, 2024

I had the same problem. Also worth mentioning is:

⚠️  The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
⚠️  The `Deno.dlopen` API was used with `--unstable` flag. The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-ffi` instead.

@eliassjogreen eliassjogreen added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants