ESP8266WWiFi and RequestHandler.h

I keep getting this error message:

***************************Arduino: 1.8.8 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all
In file included from D:\Arduino\ESP8266 WiFi programs\42bots_ESP8266_to_Wifi\42bots_ESP8266_to_Wifi.ino:8:0:

C:\Users\mcguinness\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WebServer.h:64:35: fatal error: detail/RequestHandler.h: No such file or directory

 #include "detail/RequestHandler.h"

                                   ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I can verify that the library ESP8266WiFi does include RequestHandler.h

I got this code from a tutorial book on the NodeMCU-12E module. Cut and Pasted.

Here it is:

#include <ESP8266WiFi.h>

                                                           // Replace these with your WiFi network settings
const char* ssid = "ESP8266";               //replace this with your WiFi network name
const char* password = "ESP8266Test"; //replace this with your WiFi network password

void setup()
{
  delay(1000);
  Serial.begin(115200);
 
  WiFi.begin(ssid, password);

  Serial.println();
  Serial.print("Connecting");
  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
  }

  Serial.println("success!");
  Serial.print("IP Address is: ");
  Serial.println(WiFi.localIP());
}

void loop() {
}

If someone has any info that will help, I would appreciate your time.

Thanks!
Tim

remove the library from your libraries folder. it is part of the esp8266 boards package

juraj,

Thank you so much. I suspected a corrupt or missing library was to blame.
I moved that folder out of my libraries folder, removed and re-installed the esp8266 board package and that has helped.

I'm very grateful. This has had me perplexed for a number of days.

Tim