Hello.
You are missing include in your cpp file. Just add this and it should work:
#include "Components/BoxComponent.h"
The code still won’t compile tho, due to 19th line of your cpp file.
You’d have to either finish what you wanted to do there or remove it,
Also, you shouldn’t include generated.h files within your cpp files.
Cheers.