No errors here compiling on Arduino IDE 1.8.16 with ESP8266 Boards (3.0.2) and the latest versions of the libraries.
Sorry, saw ESP and though ESP8266 instead of ESP32. Problem may be that the ESP32 is fairly recent and the libraries have not implemented the specific code needed.