Unity 2019.1.1f1 WebGL build failed : 'UnityEditor.BuildPlayerWindow+BuildMethodException'

Hi everyone,
I’m having this error when trying to do a webGL build using Unity 2019.1.1f1 :

UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I’ve already tried to reimport all assets and reinstall Unity but it still does not work. Also it comes from my project because when I do an new empty Unity project and do a webGL build it works.

pls upload your error log.so that we can help you.

I had the same issue. Try removing all the unnecessary packages (like ads and multiplayer hlapi) using package manager (Menu–>Window–>Package Manager). Also the build directory path should not have spaces or special characters. I choose Desktop as my build location. :slight_smile:

thanks man, you saved my life, thank you soooooooo much