Can't compile when I create a UCameraComponent

Hello everyone,

I try to start a project from zero in c++ and when I add a UCameraComponent I can’t compile the project.

It is the only things I added in my character and I really don’t get why it’s getting an error.

Here is a screen of my code.

I know this is an old threat, but I had the same problem and had to look around for the answer.
The documentation is out of date. You need to #include “Camera/CameraComponent.h”

Hope that helps anyone else out there stuck on this one.