wasm_thread icon indicating copy to clipboard operation
wasm_thread copied to clipboard

Can't seem to make it work on electron

Open felipellrocha opened this issue 2 years ago • 2 comments

It might be a permission issue, or something else, but I can't quite tell after about a week of working on this.

Screen Shot 2023-01-13 at 13 53 39

This code works fine when I load the same code on the browser (Chrome), but not Electron, which, presumably, uses the same version of chrome. I also get no errors on console.

Any ideas?

felipellrocha avatar Jan 14 '23 22:01 felipellrocha

I have no experience with electron so I'll be just guessing:

  • Have you looked at network tab to check if webworker script is loaded? Maybe there is a path issue
  • Does wasm_logger support web workers? Try using console_log as in example and also a console_error_panic_hook, which will tell you if something panics.

chemicstry avatar Jan 16 '23 16:01 chemicstry

I have checked both the path and verified the logger works (It works on browser). Are you available over discord for a quick pairing session sometime this week?

felipellrocha avatar Jan 16 '23 18:01 felipellrocha