WASM react module parse failed: magic header not detected
问题 I'm trying to load a simple web assembly module in a react project. The wasm module was compiled with the MODULARIZE option. From the documentation I've tried incorporating this into my code as follows: fetch('./my-library.wasm') .then(response => response.arrayBuffer()) .then(bytes => WebAssembly.instantiate(bytes)) .then(results => { console.log("do something"); }); Where ideally I would like to store the results in the state so I can access the module throughout the code (replacing the