you’ll need to post more code for anyone to help you
Please post your AModule.h class header
And the entire .h file for your main function you copied portions of above.
#Dependson
also sounds like your current class needs to depend on AModule.h
UCLASS(dependson=AModule)
Rama