Packaging plugin fails

I’m currently trying to package a C++ plugin I wrote. The plugins compiles fine in DebugGame_Editor, Development, and Shipping (inside VS2017) but when I click on the Package button, i got this error:

UATHelper: Package Plugin Task (Windows):     C:\Program Files\Epic Games\UE_4.20\Engine\Source\Runtime\Core\Public\Core.h(6): warning: Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs.
UATHelper: Package Plugin Task (Windows):     C:\Users\Stagiaire\Documents\Unreal Packages\DeltatecMedia\HostProject\Plugins\DeltatecMedia\Source\GPUResourcesSharing\Public\GPUResourcesSharing.h(14): fatal error C1083: Cannot open include file: 'Array.h': No such file or directory

I use PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; in my module .Build.cs (As it is possible that this information is useful).

Why is there a problem? If you have any pointers, please share them.

Ok it seems to be a little more clear now. I re-read the documentation about [IWYU][1] and I finally understand what to do.

For anyone having the same error, begin every header file with the include of CoreMinimal.h and then after that remove all the Engine.h, Core.h (and other include that trigger the error). You can change them directly by the special header you want to include. If you need to access GEngine or other globals inside Engine.h include Engine/Engine.h to make the differences between the two.

EDIT: For most header to be included, it is not just Filename.h, it is more like SubModule/Filename.h. These can be found easily by search [this page][2]. At the bottom of the page for a particular class, you can find the module and the header to use.

For example to include AActor.h it is required to include “GameFramework/Actor.h” as shown in the picture below.

I hope this will help.