This is similar to previous closed topics which didn't help me get rid of the error.
Actually, I can compile and upload fine, but the error message is distracting since I'm not using the esp8266 right now. I.e., I am developing a Teensy 4.1 project,
I just want to get rid of the error message. I only added the esp8266 json file to ~/.arduino15/arduino-cli.yaml because I thought it might help, but it didn't. I.e,
I just love Arduino-cli because it does everything the IDE did, for my purposes! Only it works better because use Vi to edit the source and I kept fighting the IDE's editor before.
Hi @pinaar. The error is caused by a misconfiguration of this specific board of the esp8266:esp8266 boards platform. Arduino CLI is more strict about these configurations than Arduino IDE 1.x.
However, I am surprised to see this because one of the Arduino CLI developers submitted a fix for the bad configuration last summer:
That fix is in the last two releases of the esp8266:esp8266 boards platform (3.0.1 and 3.0.2). Do you have an old version of esp8266:esp8266 installed? If so, and if you don't have any specific reason not to, please update to the latest version: