Error when packaging

I had the same error. In my case it was missing calling “super” methods in overrided members of component.

void USomeComponent::TickComponent(float DeltaTime, ELevelTick TickType,
    FActorComponentTickFunction* ThisTickFunction)
{
    Super::TickComponent(DeltaTime, TickType, ThisTickFunction); // should be present
}

void USomeComponent::BeginPlay()
{
    Super::BeginPlay(); // should be present
}

void USomeComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
    Super::EndPlay(EndPlayReason); // should be present
}

Adding these lines solved my problem.