Unrecognized type 'UComponent' - type must be a UCLASS, USTRUCT or UENUM

Hi, thanks for getting back to me, here is the class:

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "WRCameraMovementComponent.generated.h"

class AWRPlayer;

UCLASS()
class WR_API AWRCameraMovementComponent : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	AWRCameraMovementComponent();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;