sometimes errors occure after one minor error. make sure to fix important errors first. an indication for this is the output console of visual studio. scroll up to the first error, dont start with the last error, otherwise it is possible you “fix” correct things into wrong things
make sure your .generated.h ist always the last include in your class headers