Upload to ESP32-C3 Super Mini fails: "in flash_size_bytes TypeError: argument of type 'NoneType' is not iterable"

Did anyone figure out the issue ?