if you don't want two write the complete code for the ESP32 but instead want to use existing code and libraries
it is probably better to install the core 2.0.17 instead of core 3.X
espressif made "breaking changes" inside the core 3.X.
A lot of libraries will not work with core 3.X
seems to be strange board.
what exact type of ESP32-board do you have?
ESP32, ESP32S2, ESP32S3, ESP32C3 ?