need help with this error whilst trying to build my game as a html file to export it ,need help with this error when im trying to build my game and export to itch.io

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0027c] in <8f44d91b549e47c9883e180579f26ef6>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <8f44d91b549e47c9883e180579f26ef6>:0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I know this isn’t the best answer, but try going to the source of the problem and delete the line of code that is causing the problem, unless that code needs to be there.