Skip to content

Simple download and run the example locally does not work( on Windows 10) #7

Description

@Huge

I have clonned your repository hoping that I can run the https://github.com/3box/sss-wasm/tree/master/example offline from my system, the index opens, but the logic does not work.
Browser console shows loading errors like Fetch API cannot load file:///C:/Users/myUser/Desktop/sss-wasm-master/example/wrapper.wasm. URL scheme must be "http" or "https" for CORS request. Further there is this trace:

sss-wasm.js:13463 wasm streaming compile failed: TypeError: Failed to fetch
  anonymous) | @ | sss-wasm.js:13463
  | Promise.catch (async) |   |  
  | doNativeWasm | @ | sss-wasm.js:13462
  | Module.asm | @ | sss-wasm.js:13501
  | Wrapper | @ | sss-wasm.js:13523
  | (anonymous) | @ | sss-wasm.js:13048
  | load | @ | sss-wasm.js:13047
  | createShares | @ | sss-wasm.js:13073
  | do_split | @ | index.html:62

There is a few more and the last is Uncaught (in promise) abort("abort(\"on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)\"). Build with -s ASSERTIONS=1 for more info."). Build with -s ASSERTIONS=1 for more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions