Michael Paus
12/08/2023, 11:44 AMwasmJsBrowserRun
works without problem in Firefox and Chrome (latest versions) but when I create a distribution via wasmJsBrowserDistribution
and upload it to my own server I just get a white page when I call the corresponding URL. The page seems to load but in the developer tools of the browser I see many lines like this. Does anyone know what the reason for this is and how it can be cured?
wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type '' expected 'application/wasm'
PHondogo
12/08/2023, 11:52 AMMichael Paus
12/08/2023, 12:07 PMPHondogo
12/08/2023, 12:08 PMPHondogo
12/08/2023, 12:09 PMMichael Paus
12/08/2023, 12:12 PMPHondogo
12/08/2023, 12:17 PMRobert Jaros
12/08/2023, 12:18 PMMichael Paus
12/08/2023, 12:33 PMskiko.wasm
and that works without problem. So, I doubt that the server settings are wrong.Robert Jaros
12/08/2023, 12:44 PMwasm
file. There is even the same message in the browser console. There is a difference - in the older example this is only a warning and in the newer it's an error. Perhaps there is some fallback in the old skiko.js. Anyway, fixing the server configuration is the correct way to address this issue.Michael Paus
12/08/2023, 12:45 PMMichael Paus
12/08/2023, 1:07 PMAddType application/wasm .wasm
in a local .htaccess
file and voila it works.
Thanks a lot to everybody who helped.Colton Idle
12/08/2023, 2:05 PMArjan van Wieringen
12/08/2023, 5:32 PMColton Idle
12/08/2023, 5:44 PMMichael Paus
12/08/2023, 7:30 PM