[FIXED] Cannot open unreal project after cleaning/rebuilding

Hello,
I’m currently following the Unreal 2D class. I’m at video 2.9, and after cleaning & rebuilding the project like in the video, I’m getting the following error messages when launching the unreal project:

Capture d'écran 2024-08-23 122721

Of course, If I press “yes” it says that it cannot be rebuild and need to rebuild from the source.

If I press “no”:

I checked the Build.cs file, to check the modules we added at the start of the course, it’s still there:

> // Copyright Epic Games, Inc. All Rights Reserved.
> 
> using UnrealBuildTool;
> 
> public class Desert_Racer : ModuleRules
> {
> 	public Desert_Racer(ReadOnlyTargetRules Target) : base(Target)
> 	{
> 		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
> 	
> 		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput", "Paper2D" });
> 
> 		PrivateDependencyModuleNames.AddRange(new string[] {  });
> 
> 		// Uncomment if you are using Slate UI
> 		// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
> 		
> 		// Uncomment if you are using online features
> 		// PrivateDependencyModuleNames.Add("OnlineSubsystem");
> 
> 		// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
> 	}
> }

I don’t have any error when building the project in visual studio 2022.

Hope someone have a fix.
Thanks

I fixed it!
I had errors in my code.

I put in comment what I did the last time, rebuild everything, and the project launched again.
Then, I compared the code with the one of the course and I had some typo.

1 Like

Privacy & Terms