BitOrder' has not been declared

When compiling example SHT31test under CubeCell -Third Party Sensor Examples I get the error:

libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:57:22: error: ‘BitOrder’ has not been declared
BitOrder dataOrder = SPI_BITORDER_MSBFIRST,

Any ideas?

I switched to the library arduino-sht and that works! (The library above which failed to compile was Adafruit SHT-31.)