Can't install ESPHome on S2 MINI

I also referenced this post:
https://www.reddit.com/r/Esphome/comments/11a08za/can_esp32s2_minis_be_used_for_esphome/
And tried the following configuration:

esp32:
  board: lolin_s2_mini
  variant: esp32s2
  framework:
    type: esp-idf