C0183 Visual Studio building error

Hi!

I have been working on an online course, learning C++ and applying it to UE in combination with Blueprints. After working on refactoring my code while learning about Inheritance, my project suddenly stopped compiling and building my headers, with an error pointing out to ‘WarningsAsErrors’ being turned on. Right after disabling this feature on my solution I started to get the following error:

2>D:\OneDrive\Escritorio\Unreal Engine Assets\uDemy Game Dev Course Project\uDC_Project\Source\uDC_Project\Private\Weapons\Weapon.cpp : fatal error C1083: Cannot open precompiled header file: ‘D:\OneDrive\Escritorio\Unreal Engine Assets\uDemy Game Dev Course Project\uDC_Project\Intermediate\Build\Win64\uDC_ProjectEditor\Development\Engine\SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.pch’: No such file or directory

This error listed and repeating for every single C++ .cpp scripts.

I tried moving the project to a different drive, no difference.
I tried updating my SDK and other parts of Visual Studio as I read online without success.
I was also recommended to delete some folders in my project (Binaries, Intermediate, Saved, .sln file) and regenerating project files, but it didn’t work.
I tried creating a ‘master script’ to load all of these headers and then set this as an include in all of my .cpp files, didn’t work either.

The following file can not be located: SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.pch , when I search for this on my folders I can see it there, but instead of a .pch file, it is a .h file.

Screenshot 2023-03-07 152201

Needless to say, my UE project won’t load.

Any help would be appreciated! Thank you in advance.

Did you Find The Solution? I
I am having the Similar problem