Compiler is saying XboxController does not name a type

I included frc/XboxController.h. I don’t know what the problem is.

The 2019 libraries removed the frc namespace shims that were in place in previous years. You must fully qualify all FRC libraries with frc:: or using namespace frc;. Note the first one is MUCH more highly recommended to do.