Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sulamanidze1 opened this issue Nov 17, 2022 · 1 comment

Comments

@Sulamanidze1
Copy link

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!

@greggman
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants