We use the dotnet6 blazor wasm pwa for two projects. We use the iframe in the first blazor wasm project. We call the second project from it with using the iframe.
There has no error computer browser and mobile browser.
There has the error in tablet browser only.
"TypeError: Failed to excute 'arrayBuffer' on 'Reponse': body stream already read in Dotnet6 Blazor wasm" or "TypeError: WebAssembly.instantiate(): Argument 0 must be a buffer source or a WebAssembly.Module object"
return s.instantiateWasm = (e,t)=>((async()=>{
let n;
try {
const t = await u;
n = await async function(e, t) {
if ("function" == typeof WebAssembly.instantiateStreaming) {
try {
return (await WebAssembly.instantiateStreaming(e.response, t)).instance
} catch (e) {
console.info("Streaming compilation failed. Falling back to ArrayBuffer instantiation. ", e)
}
}
const n = await e.response.then((e=> {
e.arrayBuffer(); // This is error because of e.reponse is empty.
}));
return (await WebAssembly.instantiate(n, t)).instance // this is error because argument 0 must be a buffer source or a WebAssembly.Module object
}(t, e)
} catch (e) {
throw s.printErr(e.toString()),
e
}
t(n)