Object library in Blueprints or from c++

I’m trying to build this and I keep getting the error of “incomplete type is not allowed” for the TSubclassOf ObjectClass part of the .cpp file. It is specifically highlighting the TSubclassOf part of the line, any clue why I’m getting this error?