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

./bin/kafkagosaur.wasm not found #19

Open
7flash opened this issue Mar 30, 2023 · 2 comments
Open

./bin/kafkagosaur.wasm not found #19

7flash opened this issue Mar 30, 2023 · 2 comments

Comments

@7flash
Copy link

7flash commented Mar 30, 2023

error: Uncaught NotFound: No such file or directory (os error 2): readfile './bin/kafkagosaur.wasm'
  const wasmBytes = await Deno.readFile(wasmFilePath);
                    ^
    at async Object.readFile (ext:deno_fs/30_fs.js:693:18)
    at async runGoWasm (https://deno.land/x/kafkagosaur@v0.0.6/mod.ts:45:21)
import KafkaGoSaur from "https://deno.land/x/kafkagosaur@v0.0.6/mod.ts";

const broker = await kafkaGoSaur.createWriter({
  topic: "book-updates",
  address: "localhost:9092",
});
@7flash
Copy link
Author

7flash commented Mar 30, 2023

Fixed by manually copying kafkagosaur.wasm from this repository into bin folder relative to my app root

@7flash
Copy link
Author

7flash commented Mar 30, 2023

But then it throws an error:

error: Uncaught CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 0a 0a 0a 0a @+0
  const instiatedSource = await WebAssembly.instantiate(
                                            ^
    at runGoWasm (https://deno.land/x/kafkagosaur@v0.0.6/mod.ts:46:45)

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

1 participant