The following definitions are missing from user_setup.h:
#define TFT_RGB_ORDER TFT_BGR
#define TFT_INVERSION_OFF // for TN displays
#define USE_HSPI_PORT
You previously mentioned that this is an ESP32S3, but the description in user_setup.h refers to an ESP32
Have you cleared the system cache?
If you have previously compiled this library with different settings, the Arduino IDE may be using a pre-compiled version of TFT_espi.
darex120 wrote: other libraries work.
Other libraries have their settings in the programme code.
TFT_espi is quite a specific library.
Which CoreESP32 do you have installed?