Error: Could not load broken JSON: /data/cache/platformio/platforms/espressif8266/.piopm

Can’t get past this error message when trying to upload .yaml file to my device: -

“Error: Could not load broken JSON: /data/cache/platformio/platforms/espressif8266/.piopm”

Can’t find any useful help online.
Any help greatly appreciated.

Think I may have solved it: -
WAIT when trying to upload initial .yaml file to your ESP device using ESPHome.
It takes ages. Don’t hit STOP before you are sure it’s done everything.

Hi,

Running into the same issue after I migrated from a Pi3 to a 4

What do you mean by waiting during initial upload?
Ignore the error message and keep waiting?