Are you developing code for ESP8266 or for Arduino UNO ?
I think you are mixing up things here !
Don't expect ESP code to compile for UNO, that why is you are getting all those errors since the compiler doesn't look at all in the ESP include folders ...