Getting no such directory file error when compiling
The ESP8266WiFi library is for programming the ESP8266 directly. You are trying to compile source code for the ESP8266 for the Arduino UNO, that obviously won't work.

A Beginner's Guide to the ESP8266