Error compiling for board DOIT ESP32 DEVKIT V1

Check this topic, this is exactly what you need end explains why the issue appears: