M5Stack/IDF incompatibility

I have a correctly compiled and loaded example, Button, from the M5Stack examples. When I add the include files that are in the IDF example espnow to the button.ino it generates a lot of erros, mostly that the include files cannot be found. Is there an incompatibility in the libraries? If so, how can it be resolved?

Can you show the exact platformio.ini and code that you’re working with?