Compiler Error..?

been bashing my head over this all day. Here’s the inexplicable error. Not using any addonns/plugins whathaveyou

new to Unity as of this week but preeeetty sure its not my code

Exception: Error building Player because scripts had compiler errors
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:341)
UnityEditor.BuildPlayerWindow.BuildPlayerAndRun () (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:263)

well ill be damned… i have noooo idea what was wrong but it is fixed… copied my objects into a fresh scene and everything works fine and dandy…

Is this a common problem? / is there a way to avoid this in the future?

Without more information NO ONE can help you. We’d need to see the contents of the script to help you troubleshoot. I have not had that problem.

It might have been a script compile order problem, but without more information no-one knows.