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

[Bug] [Windows] Webview errors out on calling new Webview() #25

Open
wont-stream opened this issue Dec 4, 2024 · 1 comment
Open

[Bug] [Windows] Webview errors out on calling new Webview() #25

wont-stream opened this issue Dec 4, 2024 · 1 comment

Comments

@wont-stream
Copy link

Took the example code

import { Webview } from "webview-bun";

const html = `
<html>
    <body>
        <h1>Hello from bun v${Bun.version} !</h1>
    </body>
</html>
`;

const webview = new Webview();

webview.setHTML(html);
webview.run();

And it threw an error

PS C:\Users\euro\projects\crud> bun .
1 | MZ����@��   �!�L�!This
      ^
error: Expected ";" but found ""
    at C:\Users\euro\projects\crud\node_modules\webview-bun\build\libwebview.dll:1:3

1 | MZ����@��   �!�L�!This p
       ^
error: Unexpected 
    at C:\Users\euro\projects\crud\node_modules\webview-bun\build\libwebview.dll:1:4

Bun v1.1.38 (Windows x64)

Naturally I assumed the DLL was outdated, so I cloned this repo locally, and rebuilt the DLL, and installed the local project as a module, and no changes just different path name in the error.

@tr1ckydev
Copy link
Owner

Use the filename to execute instead of the dot.

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

No branches or pull requests

2 participants