Does anyone know how to solve the problem? I am currently migrating some of my codes from UE4 to UE5, and found that I couldn’t just force add EditorStyle in the dependency part. At this point I use bBuildEditor to check if I should add EditorStyle:
And I also added #if WITH_EDITOR to handle header file issues:
But I keep getting the following error:
1>C:\Users\Kluezecheng\Desktop\ue5\UnrealEngine\Engine\Source\Developer\TraceInsights\Private\Insights\Widgets\SBadTimersView.cpp(125): error C2653: ‘FEditorStyle’ : is not a class or namespace