Hi everyone.
sorry, there was one same topic before.
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
And when you upload the code don't forget to select the proper board. A ESP32 WROVER is NOT a ESP32-WROOM.
both WROOM and WROVE compiling good. AI Thinker some times got error.