c++ – Errors in Visual Studio 2022 when creating a standard template in Unreal Engine 5

Why is it that in Unreal Engine 5, when creating a new Third Person C++ template in which I didn’t touch anything, 43 errors appear in my Error List, mostly with the code:
E0070 incomplete type “Optional” (aka “Optional”) is not allowed?
If I set Build Only instead of the Build + IntelliSense function, then the errors become 0.

The problem persists even if I create a completely empty Default Unreal Engine 5 project. At the same time, the project is successfully compiled and running. But these errors confuse me and I don’t understand why they occur. I’m using Windows 11 24H2.

Screenshots:
enter image description here[enter image description here](i.sstatic.net/e8paECov.png)

I tried reinstalling UE, installing additional SDKs for Windows 11 and 10 in Visual Studio 2022, disabling Live Coding in UE, and deleting folders .vs, Save, Intermediate, Binaries in the project directory and rebuild the project.

Read more here: Source link