3

I have recently Used Unity to create this simple game: The game

And I built it with WebGl: Webgl but sadly it gives me this error message: "Unable to parse Build/Game.framework.js.br! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: br" present. Check browser Console and Devtools Network tab to debug."

I NEED TO FIGURE OUT THE SOLUTION TO THIS BUG ASAP, thanks, Jake.

SideNote the website for this game is here: https://aliceblueemptysandbox.sweetmango88.repl.co/

  • 1
    It looks like Replit doesn't serve the pages with the requisite `Content-Encoding` header. You could enable decompression fallback to work around this: https://docs.unity3d.com/Manual/webgl-deploying.html – smitop Jun 24 '22 at 22:54
  • @Smitop I have enabled decompression fallback and it now gives me the error "Failed to download file Build/Game.framework.js.unityweb. Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option." Edit: It works now! thank you :D – jake is the coolest Jun 24 '22 at 22:56
  • ...then run a local web server or use the Unity Build and Run option? (if you upload the modified version to Replit it would also work) – smitop Jun 24 '22 at 22:59

0 Answers0