Esp_now problem

I tried to compile your code and I don't get any warning or compiler error.

Are you up to date with the ESP32 boards definition and tools?