Hello there,
topic is very old but seems latest update again broke pins_arduino.h
I can see it here
c:\Users\.platformio\packages\framework-arduinoespressif32@3.20004.220825\variants\d1_mini32
but there is no “variants” folder there
c:\Users\.platformio\packages\framework-arduinoespressif32\