Fatal error: WiFiServer.h: No such file or directory

This is odd when I put fatal error: WiFiServer.h: No such file or directory in main.cpp No Problem but in
Parsing.cpp
include <Arduino.h>

#include <esp32-hal-log.h>
#include “WiFiServer.h”
#include “WiFiClient.h”
#include “WebServer.h”
#include “detail/mimetable.h”
I get
C:/Users/ats37/.platformio/packages/framework-arduinoespressif32/libraries/WebServer/src/Parsing.cpp:24:10: fatal error: WiFiServer.h: No such file or directory
I tried it with
-I C:\Users\ats37.platformio\packages\framework-arduinoespressif32\libraries\WebServer\src
-I C:\Users\ats37.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src
no success the same with esp32 and esp32-S3
my
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev

; Spezifische Konfiguration für ESP32-S3 mit 16MB Flash und 8MB PSRAM
board_build.flash_mode = qio
board_build.flash_size = 16MB
board_build.psram_type = opi
board_build.f_flash = 80000000L
board_build.f_cpu = 240000000L

; PSRAM aktivieren und konfigurieren

; Partitionstabelle für großen Flash-Speicher
board_build.partitions = huge_app.csv

monitor_port = COM6
upload_port = COM6
monitor_speed = 115200
build_type = debug

upload_speed = 921600
build_flags =

#-I C:\Users\ats37.platformio\packages\framework-arduinoespressif32\libraries\WebServer\src
#-I C:\Users\ats37.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src
-D bWiFiTest=true
-D ssidWoWi=‘“Wokwi-GUEST”’
-D passwordWokWi=‘“”’
-D ssidWiFi=‘“GigisBoost”’
-D passwordWiFi=‘“Ulrike#123”’

lib_deps = WiFi
mobizt/ESP-Google-Sheet-Client@^1.4.3
git@github.com:me-no-dev/ESPAsyncWebServer.git
git@github.com:me-no-dev/AsyncTCP.git
arduino-libraries/Arduino_JSON@^0.2.0
git@github.com:adafruit/Adafruit_Sensor.git
adafruit/Adafruit BMP280 Library@^2.6.8
adafruit/Adafruit BusIO@^1.15.0
git@github.com:marian-craciunescu/ESP32Ping.git
bblanchon/ArduinoJson@^7.0.1
khoih-prog/ESP32TimerInterrupt@^2.3.0
git@github.com:marian-craciunescu/ESP32Ping.git

If this file cannot be found your platform seems to be broken.

What platform version do you use exactly?

Is deprecated and should be replaced by esp32async/ESPAsyncWebServer

I don’t know what you’re trying to do with WiFiServer but since you’re using AsyncWebServer, why not using AsyncTCP for creating Async servers?

I try this do make

[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev

PlatformIO Core, version 6.1.18

Unfortunately, this does not answer the question about the version as you did not specify the platform version. What’s the version of your installed espressif32 platform?