i had a similar problem yesterday that i could not use some UComponents in my Vehicle c++ project without the include, that where used without include in a Tutorial( Basic Code project).
so i looked for differences and found them in ModulName.h(in your case ModularSciFi.h) they use different includes.
Basic Code project includes Engine.h while the Vehicle project only includes CoreUObject.h
so if you dont want to include most UComponents, you can change your include to Engine.h