Can't include Object.h and Delegate.h

I am trying to compile my plugins for 4.20
But I have fatal errors (can not open include file) on:

#include "Object.h"
#include "Delegate.h"

Any ideas?

Why you incuding those instead just including base class header file?

Well I don’t know - it worked fine in previous engines

what is the base header file ?

Normally you don’t need to include those. by base class header file i mean header file contain deceleration of base class you using in this header, for example if you use AActor as base class then you shoud include “GameFramework/Actor.h”. Header fiels include other headerfiles which effectivly be included in your header file, by including base class header file you will have all includes nessesery needed to support your base class already done, thats what class generator does in editor too. There some forward declarations which require you to include extra header files in cpp file, you do that when you get “Incomplete deceleration” error

Well obviously I included the base class…
“Components/ActorComponent.h” in my case.

But, without including the Delegate.h (Which I found solution for now is to use #include “Delegates/Delegate.h” which is super awkward change that I hate with everything inside me.

Try this:
#include “UObject/Object.h”
#include “Delegates/Delegate.h”