Search Unity

Question Unity Cannot Build WebGL Project

Discussion in 'Web' started by GoldenBat, Jan 19, 2023.

  1. GoldenBat

    GoldenBat

    Joined:
    Sep 15, 2018
    Posts:
    1
    First error:

    Building S:\UnityProjects\My project2d\Library\Bee\artifacts\WebGL\il2cppOutput\UnityClassRegistration.cpp failed with output:
    ""S:/UnityHubEditors/2021.3.6f1/Editor/Data/MonoBleedingEdge/bin/mono""
    is not recognized as an internal or external command, operable program or batch file.
    .
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Second Error is the exact same except:

    Building S:\UnityProjects\My project2d\Library\Bee\artifacts\WebGL\il2cppOutput\UnityICallRegistration.cpp failed with output:
    ""S:/UnityHubEditors/2021.3.6f1/Editor/Data/MonoBleedingEdge/bin/mono""
    is not recognized as an internal or external command, operable program or batch file.
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Third Error:

    BuildFailedException: Incremental Player build failed!
    UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44a70d1b13cf47e29810e30f45ffae08>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:158)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44a70d1b13cf47e29810e30f45ffae08>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <44a70d1b13cf47e29810e30f45ffae08>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)