Error : Unrecognized type 'UBoxComponment' - type must be a UCLASS, USTRUCT or UENUM

// SpawnVolume.h
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/BoxComponent.h"
#include "SpawnVolume.generated.h"


UCLASS()
class BCD_API ASpawnVolume : public AActor
{
	GENERATED_BODY()

public:
	// Sets default values for this actor's properties
	ASpawnVolume();

private:
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Spawning", meta = (AllowPrivateAccess = "true"))
		class UBoxComponment* WhereToSpawn;// <<<<<<<<<<<<< error here
};

I am following the C++ Battery Collector Tutorial on youtube,I don’t know why I have include BoxComponent.h,but UE4 gives me an error.

Hey, i would say simple typo:

“UBoxComponment” → ‘UBoxComponent’

Have a good day :slight_smile:

Thank you.