I’ve tried retargetting back to 5.3 and it no longer compiles. The error is still the same.
I’ve tried Rider, no change.
I’ve commented out the code and other files that use to compile no longer compile. With some other include file that can no longer be found.
Is there anyway to open the project in Unreal, without trying to compile?
Unreal will spit out random errors (sometimes) if there is:
a missing header file
a missing Module / plugin (or incorrectly configured)
an incorrect USTRUCT or UCLASS declaration
The mistake I made was to write new code while upgrading Unreal, so I had no idea what caused the problem.
Eventually I rolled back through my commits until I found one that compiled. Then I started adding the changes in one at a time until I found the code that broken the build. It was then simple to fix the problem.