Undeclared identifier only when packageing project

hi, i have a class that complies fine in Visual studios and editor but fails to package with an undeclared identifier. it seems to be caused by a inherited member variable on a class called APlacementGrid_BASE that inherits bLockLocation from AActor. this is the error “error C2065: ‘bLockLocation’: undeclared identifier” . its definitely the member var as if i comment out “bLockLocation = true;” the game will package fine, but i have no idea why its an undeclared identifier.

.h
#include “CoreMinimal.h”
#include “GameFramework/Actor.h”
#include “PlacementGrid_BASE.generated.h”

UCLASS(Blueprintable, hidecategories = (“PlacementGrid”))
class MyGAME_API APlacementGrid_BASE : public AActor
{
GENERATED_BODY()

public:
APlacementGrid_BASE();
};

.cpp
APlacementGrid_BASE::APlacementGrid_BASE()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don’t need it.
PrimaryActorTick.bCanEverTick = false;
bLockLocation = true;
}