About 60+ Errors with fresh Unreal Engine 5.6

Hi, I wanted to get started with UnrealEngine finally and watched some tutorials for prep.
I created a new project with the basic 3rd person layout and then did nothing except for adding a uobject which I called “item”. Unreal created the two files and when I just simply compiled them, it spit out 64 errors. I tried to ask ChatGPT but it’s fixes didn’t solve the issue. I installed all the necessary Visual Studio 2022 packs and components (based on the guide from EpicGames).

I don’t feel like it should be normal to have that many issues from the start, so I must be doing something wrong. Please help <3

Look if you have missing “;” or other as silly thing somewhere.

Just look at first line where error was reported and a bit up (like same function scope).

Hey there @Dr_King_Schulze! Welcome to the community! So this is likely related to a quirk in the interaction of Unreal Engine, Visual Studio, and C++ in general for large projects like this. There are some natural downstream errors that VS will detect, even if there is no problem with the actual compilation of your project. Even the official documentation recommends disregarding the entire solution error window and only focus on errors in documents within scope.

If you’d setup VS correctly, you should still be able to build your project itself without issue, though if you can’t there may be other issues at play. One common issue is installing the Unreal Engine Visual Studio Integration for recent versions that don’t support it yet like 5.4 - 5.6. Another common issue is that Live Coding can sometimes fail in some esoteric ways in which the solution can no longer be built and it needs to be cleaned and rebuilt inside of VS.

Alternatively if you have an error with the actual scripts you introduced, we can take a look here if you’d like to post them!