ESPHOME - Firmware update fails

Hi Folks,

I have this custom switchboard installed at home with ESPHOME controlling a couple of relays and a FAN regulator. And this is working fine but I recently tried to update the firmware after updating ESPHOME and now get this error

INFO ESPHome 2024.6.6
INFO Reading configuration /config/esphome/hoesp32v4.yaml...
WARNING GPIO12 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing hoesp32v4 (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Library Manager: Installing FS
Warning! Could not find the package with 'FS' requirements for your system 'linux_aarch64'
Library Manager: Installing Update
Warning! Could not find the package with 'Update' requirements for your system 'linux_aarch64'
Library Manager: Installing ESPmDNS
Warning! Could not find the package with 'ESPmDNS' requirements for your system 'linux_aarch64'
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- WiFi @ 1.2.7
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.0
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/hoesp32v4/src/esphome/components/captive_portal/captive_portal.cpp.o
In file included from src/esphome/components/web_server_base/web_server_base.h:10,
                 from src/esphome/components/captive_portal/captive_portal.h:10,
                 from src/esphome/components/captive_portal/captive_portal.cpp:1:
.piolibdeps/hoesp32v4/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:27:10: fatal error: FS.h: No such file or directory

************************************************************
* Looking for FS.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:FS.h"
* Web  > https://registry.platformio.org/search?q=header:FS.h
*
************************************************************

 #include "FS.h"
          ^~~~~~
compilation terminated.
Compiling .pioenvs/hoesp32v4/src/esphome/components/logger/logger.cpp.o
*** [.pioenvs/hoesp32v4/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
========================== [FAILED] Took 9.65 seconds ==========================

rest of my ESPHOME devices are upgrading, not sure why this one alone has the issue. Please let me know if anyone knows a way to resolve this.