You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make sure that your web server's redirect filter excludes .wasm files.
I finally discovered that was the reason why my wasm files were being delivered as html.
Hi,
While running angular application with wasm file , I am getting below error
CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0
Please check below code
private instantiateWASM() {
fetch('hello-wasm2/hello_wasm2_bg.wasm', { method: 'GET', mode: 'no-cors'})
.then(response => response.arrayBuffer())
.then(bytes => WebAssembly.instantiate(bytes, this.importObject))
.then(mod => {
console.log("In WASM");
this.wasmModuleRef = mod.instance.exports;
})
.catch(err => console.log(err));
}
The text was updated successfully, but these errors were encountered: