If you haven't used ESP boards before, you'll need to provide information to the Arduino IDE's board manager. Here's a link to DBWS about using ESPs.
Anything seems possible when you don't know what you're talking about.
What exactly is the error? Do a screen grab of the error log and post it here in a code block
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.