Closed neb-b closed 2 years ago
Does the error also happen if you run make example-server
and load the page through http://localhost:8080
? That's the intended way of running the example.
Yeah. I see a 200 on the wasm-client.wasm
request but still see the same error
What golagn version did you use to compile the wasm binary? I think you need to use 1.17.x
That was it. I was using 1.16.9. Thanks
I am trying to run the example in this repo with the
example-server.go
server but am seeing this error on page load:The error happens at
WebAssembly.instantiateStreaming
here https://github.com/lightninglabs/lightning-node-connect/blob/master/example/index.html#L80-L84I'm think it could be because I changed the
fetch()
url there ^ to prefix it withhttp://localhost:3000/
. Without that, it tries to fetch from the file systemfile:///{...}/lightning/lightning-node-connect/example/wasm-client.wasm
which gets blocked by corsspecs
mac M1 - 12.3.1 Monteray happens in all browsers