I just fixed this issue. Pretty annoying. Mine was a very similar problem with the game not loading, giving me this error: “The game module could not be loaded. There may be an operating system error, the module may not be properly set up, or a plugin which has been included into the build has not been turned on.”
I was trying to use the “Enhanced Input” module. I added it to my build.cs file and from then on I had issues even though I could use the #includes that come with the module.
The fix was removing that module first and all the includes and commenting out the code relying on it.
Then I loaded up my game (it worked at this point without the module)
Searched for and added the Enhanced Input Plugin through the editor.
Then I closed the project.
Then I opened the workspace and readded all the code I wanted. Made sure there were no errors. Then closed the project.
Now delete the intermediate and binary files.
Then I right clicked on my uproject file → Generate Visual Studio project files.
Try and open the game now (not through your workspace)
It asks you to generate the files you deleted. Which you need to agree to.
Then the game loads up, no more issues… So far lol
I hope this helps someone save 45 freaking minutes!