Error in BatteryCollector tutorial

Hi,
I’m doing the Battery Collector tutorial. https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gYup-gvJtMsgJqnEB_dGiM4/j6HI3fr04j4/index.html

On Step 6 - Creating the Spawning Volume

There is this line:

// Create the Box Component to represent the spawn volume
WhereToSpawn = CreateDefaultSubobject<UBoxComponent>(TEXT("WhereToSpawn"));
RootComponent = WhereToSpawn;

And it throws the following error:

“Cannot convert from ‘UBoxComponent *’ to ‘USceneComponent *’”

What is wrong with it?

got it, it was posted in youtube comments.

You have to add

#include “Classes/Components/BoxComponent.h”

in the SpawnVolume.cpp file