better-unity-webgl-template icon indicating copy to clipboard operation
better-unity-webgl-template copied to clipboard

Hey! Template works on LocalHost when build and run, but does not work when uploading game on server

Open Sulamanidze1 opened this issue 2 years ago • 1 comments

Hey ! This really works on localHost, but when I upload the project on server, the project crashes, just small black squire appears and this is error message: .loader.js:1 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

Also I tried to add this in blank project, it works but when I import my game package, still does not works.. Any ideas? big thanks anyway for this asset!

Sulamanidze1 avatar Nov 17 '22 11:11 Sulamanidze1

It's got nothing to do with the template. You have to configure your server

https://docs.unity3d.com/2019.4/Documentation/Manual/Webgl-Server-configuration-for-WebAssembly-streaming.html

greggman avatar Nov 17 '22 23:11 greggman