ESP8266WiFi.h: No such file or directory

Hi, I am currently trying to connect my Arduino UNO + ESP8266 WiFi Shield to Firebase database. My WiFi shield is in UNO form, hence it is stacked on top of my Arduino UNO. However, when I upload my coding, an error keeps appearing which is :

ESP8266WiFi.h: No such file or directory

Below is my coding. Is there anything wrong with my coding/libraries? because I followed and installed all the libraries from this tutorial https://electropeak.com/learn/connect-arduino-esp8266-firebase-send-receive-data/amp/

#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
 
// Set these to run example. 
#define FIREBASE_HOST "example.firebaseio.com" 
#define FIREBASE_AUTH "token_or_secret" 
#define WIFI_SSID "SSID" 
#define WIFI_PASSWORD "PASSWORD" 
 
void setup() { 
  Serial.begin(9600); 
 
  // connect to wifi. 
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD); 
  Serial.print("connecting"); 
  while (WiFi.status() != WL_CONNECTED) { 
    Serial.print("."); 
    delay(500); 
  } 
  Serial.println(); 
  Serial.print("connected: "); 
  Serial.println(WiFi.localIP()); 
   
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); 
} 
 
int n = 0; 
 
void loop() { 
  // set value 
  Firebase.setFloat("number", 42.0); 
  // handle error 
  if (Firebase.failed()) { 
      Serial.print("setting /number failed:"); 
      Serial.println(Firebase.error());   
      return; 
  } 
  delay(1000); 
   
  // update value 
  Firebase.setFloat("number", 43.0); 
  // handle error 
  if (Firebase.failed()) { 
      Serial.print("setting /number failed:"); 
      Serial.println(Firebase.error());   
      return; 
  } 
  delay(1000); 
 
  // get value  
  Serial.print("number: "); 
  Serial.println(Firebase.getFloat("number")); 
  delay(1000); 
 
  // remove value 
  Firebase.remove("number"); 
  delay(1000); 
 
  // set string value 
  Firebase.setString("message", "hello world"); 
  // handle error 
  if (Firebase.failed()) { 
      Serial.print("setting /message failed:"); 
      Serial.println(Firebase.error());   
      return; 
  } 
  delay(1000); 
   
  // set bool value 
  Firebase.setBool("truth", false); 
  // handle error 
  if (Firebase.failed()) { 
      Serial.print("setting /truth failed:"); 
      Serial.println(Firebase.error());   
      return; 
  } 
  delay(1000); 
 
  // append a new value to /logs 
  String name = Firebase.pushInt("logs", n++); 
  // handle error 
  if (Firebase.failed()) { 
      Serial.print("pushing /logs failed:"); 
      Serial.println(Firebase.error());   
      return; 
  } 
  Serial.print("pushed: /logs/"); 
  Serial.println(name); 
  delay(1000); 
}

esp.PNG

Exactly where on your PC is ESP8266WiFi.h ?

Tried run it again just now, and this new error message appears.

FirebaseRoom_ESP8266:1:10: fatal error: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/ESP8266WiFi.h": Invalid argument
#include <ESP8266WiFi.h">
^~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/ESP8266WiFi.h": Invalid argument

izzatazman9595:
#include <ESP8266WiFi.h">

So the complier it telling you with the second problems that there is some problem with that line of code.

How does that line compare with the same line of code in the first program ?

srnet:
So the complier it telling you with the second problems that there is some problem with that line of code.

How does that line compare with the same line of code in the first program?

Both <ESP8266WiFi.h"> and <ESP8266WiFi.h> gave same error message. Do

FirebaseRoom_ESP8266:1:10: fatal error: ESP8266WiFi.h: No such file or directory
#include <ESP8266WiFi.h>
^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
ESP8266WiFi.h: No such file or directory

Do the errors have something to do with the libraries? Do I need to make sure there is ESP8266WiFi.h file in a certain folder? Because I just install the libraries using Add Zip file in IDE

In the IDE, if you do Sketch->Include Library can you select the files that the compiler is complaining that it cannot find ?

Just checked all the libraries, and it seems that there is no ESP8266WiFi.h file. Not sure when I can find this file since I've installed all the zip files. U have any idea when I can get and install the required library?

I assume that you have asked "Mr Google"

izzatazman9595:
Both <ESP8266WiFi.h"> and <ESP8266WiFi.h> gave same error message.

Both give an error but its not the same error, is it ?

FirebaseRoom_ESP8266:1:10: fatal error: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/ESP8266WiFi.h": Invalid argument

and

FirebaseRoom_ESP8266:1:10: fatal error: ESP8266WiFi.h: No such file or directory