Uncaught TypeError: unityloader.buildcompatibilitycheck is not a function

Hi,

I have tried a sample webgl build to make it run in my mobile device. I hosted the build file locally. However, when I checked the URL, the below error pops up.

6166559--674609--upload_2020-8-4_12-46-46.png

The following tools have been used:

  1. Chrome Version 84.0.4147.105. Didnt work
  2. Firefox version 79.0
  3. Wamp 3.2.2.2
  4. Unity 2019.4.4f1
  5. Compression used: Gzip and uncompressed (both didn’t work)
  6. Autographics API and webgl 2.0 both didn’t work
  7. Sample build link.

I searched some forums and they all are not exactly pointing to the mentioned error. I tried adding web.config file for IIS servers as stated in the Unity web deployment manual page and this answer.

Any idea as to why this is happening?

I am facing the same issue. Were you able to resolve yours?

Not yet… still waiting for anyone from the Unity team to respond.

Looking at the build, I am able to reproduce the problem, and the issue is that in file UnityLoader.js the function named “UnityLoader.buildCompatibilityCheck” is missing. If I manually add that function in (e.g. by copying it from UnityLoader.compatibilityCheck), the page loads up and I see a 3D model of a chair.

Now, as for why that function would be missing in 2019.4.4f1, I am not sure. Can you try updating to 2019.4.12f1 and see if the issue still persists there?

I currently have Unity 2019.4.1f1 and 2019.4.12f1 installed on my computer, and in the files

C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\UnityLoader.js
C:\Program Files\Unity\Hub\Editor\2019.4.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\UnityLoader.js

the function “UnityLoader.buildCompatibilityCheck” are present and correct. So try updating to 2019.4.12f1? I am not sure of 2019.4.4f1 would have had some regression that got fixed later.

Thank you for your reply. I upgraded the project to 2019.4.10f1 LTS and unchecked the compression. Now it works fine.