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

Readme example "Uncaught NotFound" #147

Open
LauraWebdev opened this issue Nov 18, 2022 · 0 comments
Open

Readme example "Uncaught NotFound" #147

LauraWebdev opened this issue Nov 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LauraWebdev
Copy link

LauraWebdev commented Nov 18, 2022

Hey there, I'm having somewhat of a hard time playing around with this. I've managed to get a codebase working with the examples provided in this repo and wanted to create a clean project with the example provided in the Readme.

import { Webview } from "https://deno.land/x/webview/mod.ts";

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();

Running this via deno run -Ar --unstable .\src\app.ts results in the WebView2Loader.dll being created in the src folder and the following console error:

error: Uncaught (in promise) NotFound (os error 2)
  const metadata = await Deno.readTextFile(metapath(url, ns));
                   ^
    at async Object.readTextFile (deno:runtime/js/40_read_file.js:56:20)
    at async metaread (https://deno.land/x/[email protected]/file.ts:138:20)
    at async FileWrapper.read (https://deno.land/x/[email protected]/file.ts:85:18)
    at async FileWrapper.get (https://deno.land/x/[email protected]/file.ts:108:20)
    at async cache (https://deno.land/x/[email protected]/cache.ts:67:10)
    at async Wrapper.cache (https://deno.land/x/[email protected]/cache.ts:21:12)
    at async download (https://deno.land/x/[email protected]/plug.ts:107:16)
    at async prepare (https://deno.land/x/[email protected]/plug.ts:116:16)
    at async https://deno.land/x/[email protected]/src/ffi.ts:102:20

I am running deno 1.28.1 and the examples within the examples folder of this repo (which import webview_deno locally) work flawlessly.

@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

2 participants