Build failed: Exited with code 6

Whenever I try to compile my project in Visual Studio 2019, it fails with no errors except:

“Error MSB3073 The command “E:\UE_5.1\Engine\Build\BatchFiles\Build.bat UltraRPGEditor Win64 Development -Project=“C:\Users\x\Projects\Unreal\x\x.uproject” -WaitMutex -FromMsBuild” exited with code 6.”

From what I remember, it compiled without any issues in Unreal Engine when I last accessed it. However, deleting the Intermediate, .vs, and .sln folders before regenerating the project files changed nothing.

I have heard of a code 6 error resulting from UPROPERTY specifier typos, but I can’t seem to find any. Any advice would be greatly appreciated, as I am unable to access my project until this error is resolved.

Well, there was a missing plugin, so I removed it from the .uproject file. Now I’m getting several errors from the “UOBJECTBASEUTILITY.h” file in addition to the code 6. Any advice?

I feel like such an idiot… I spent hours debugging and the whole time I was just trying to cast to a pointer instead of a type.