WebGL builds break after upgrading from 2019.3.0f6 to 2019.3.1f1

I’ve just upgraded my WebGL project from Unity 2019.3.0f6 to 2019.3.1f1 and unfortunately my builds are now breaking. When I try to build and run, I get the following errors:


Exception: Failed building WebGL Player.
UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)
UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:445)
UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:495)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:930)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <c10752821eec4acbb89ccd53fbbc5e27>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <c10752821eec4acbb89ccd53fbbc5e27>:0)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Build completed with a result of 'Failed'
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00275] in <c10752821eec4acbb89ccd53fbbc5e27>:0 
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <c10752821eec4acbb89ccd53fbbc5e27>:0 
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()```

Any thoughts? Thanks in advance! I'm going to try making an empty 2019.3.1f1 WebGL project and see if I can replicate the issue issue.

Okay, interesting. Making an empty 2019.3.1f1 WebGL project and building it doesn’t cause any issues. So, it must be something in my project, but what…? :face_with_spiral_eyes: The extra packages I’ve installed are Universal RP 7.1.8 and Input System 1.0.0 preview.5. Any thoughts where the problem is coming from? I’m going to try doing a full project reimport and see if that fixes the issue, fingers crossed.

Phew! I full reimport fixed the issue. :smile: Now back to development!

I’m getting the issue again, but now reimport isn’t fixing the issue, unfortunately.

ElnuDev could you solve the issue? i´m stucked in same error :frowning:

It was a while ago, so I don’t really remember how I resolved it. Sorry I can’t help more! Anyhow, good luck