Error building player because build target was unsupported WebGL (2019.4.11f1)

Error description

Error building player because build target was unsupported (WebGL unity3d:2019.4.11f1)

Error log

stdout.log

Technical details

  1. Which CI service are you using? None at the moment

  2. Is this failing with shared runners or are you using your own runners? N/A

  3. What is you CI configuration (is it different from example project)? n/A

  4. Did you try with the Example project before trying with your own?

  5. Did you try running the build locally from command line? Yes via windows cli it works fine, trying to run your image locally and do the build fails. Believe that the WebGL component needs to be installed.

  1. Did it work previously with a different version? The project has only been ran on this version.
  2. Are you using Assets/Scripts/Editor/BuildCommand.cs exactly as is from the repo? No. We have our own which works in windows. WebGLBuilder.cs

Script I run to build

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity \
  -projectPath $(pwd) \
  -buildTarget WebGL \
  -quit \
  -batchmode \
  -executeMethod WebGLBuilder.build \
  -logFile stdout.log

I appreciate the work you do and any help is greatly appreciated.

Edited by Gabriel Le Breton