I was using a blueprint only project but I just made an empty c++ class and rebuilt to get it to work.