Class 'AGameModeBase' not found

I am getting this error after cloning my project from git. I can’t build my project or make from source or anything. What am I missing?

1>------ Build started: Project:
MyProject, Configuration:
DebugGame_Editor x64 ------ 1>
Creating makefile for MyProjectEditor
(no existing makefile) 1> Performing
full C++ include scan (no include
cache file) 1> Parsing headers for
MyProjectEditor 1> Running
UnrealHeaderTool “F:\Documents\UNREAL
PROJECTS\proto-collab-dome\MyProject.uproject”
“F:\Documents\UNREAL
PROJECTS\proto-collab-dome\Intermediate\Build\Win64\MyProjectEditor\DebugGame\MyProjectEditor.uhtmanifest”
-LogCmds=“loginit warning, logexit warning, logdatabase error”
-Unattended -WarningsAsErrors -installed 1>EXEC : error : Couldn’t find parent type for
‘MyProjectGameModeBase’ named
‘AGameModeBase’ in current module or
any other module parsed so far. 1>
F:/Documents/UNREAL
PROJECTS/proto-collab-dome/Source/MyProject/MyProjectGameModeBase.h(12)
: Class ‘AGameModeBase’ not found.
1>Error : Failed to generate code for
MyProjectEditor - error code:
OtherCompilationError (5) 1>
UnrealHeaderTool failed for target
‘MyProjectEditor’ (platform: Win64,
module info: F:\Documents\UNREAL
PROJECTS\proto-collab-dome\Intermediate\Build\Win64\MyProjectEditor\DebugGame\MyProjectEditor.uhtmanifest).
1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5):
error MSB3075: The command ““F:\Epic
Games\4.13\Engine\Build\BatchFiles\Build.bat”
MyProjectEditor Win64 DebugGame
“F:\Documents\UNREAL
PROJECTS\proto-collab-dome\MyProject.uproject”
-waitmutex” exited with code 5. Please verify that you have sufficient rights
to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped

Hey mitemite,

The compiler cannot find AGameModeBase. Either this class doesn’t exist or it is not being loaded, as a part of a module or otherwise.

Make sure AGameModeBase is a valid class.

Fixed it by removing the headers pointing to the missing files in my game mode script. Temporary fix probably but at least the project works now.