Problem with Multiple Libraries on Arduino 1.8.13

Strange. It looks like the "FS.h" file in the ESP8266 core is conflicting with the built-in SD library in the ESP8266 core.

The latest ESP8266 support (V3.0.2) does not define File" in the SD library. That would eliminate the conflict. I suggest you go to Tools -> Board: -> Boards Manager... and update the ESP8266 support to the latest.