Multiple TOptional errors while building

Hi,

I have just created my first ue5.5 project as a Blueprint project, then added a C++ class via the editor. Now, when I try to build the project, I get LOTS of errors of “incomplete type” with TOptionals, such as:

incomplete type "TOptional<FString>" is not allowed
incomplete type "TSlateBaseNamedArgs<SGenericDialogWidget>" is not allowed

Those errors happen in the Engine files, like Dialogs.h, World.h, etc.

Any idea on how to fix that?

Thanks!

I’m having the exact same issue from a source build UE5.5 following the UE documentation for EOS. Not sure if its a bug and when it will be addressed.

Exactly the same thing happened to me.
Started with the FPS template with C++. Clicked “Add C++ class” in the editor. Then added a property to my actor class.
Now the solution won’t build with lots of "incomplete type “TOptional<…” errors.