Perhaps you mean:
#include "ESP8266WiFi.h"
Which ESPAsyncWebServer library are you using and have you tried the library examples for that library? Most of the ESPAsyncWebServer libraries I was able to find are for the ESP32 processor, not ESP8266.
Perhaps you mean:
#include "ESP8266WiFi.h"
Which ESPAsyncWebServer library are you using and have you tried the library examples for that library? Most of the ESPAsyncWebServer libraries I was able to find are for the ESP32 processor, not ESP8266.