Then you have not properly selected the active project, seems to be pointing at an older Arduino AVR project then. See Can’t upload code to esp8266
Then you have not properly selected the active project, seems to be pointing at an older Arduino AVR project then. See Can’t upload code to esp8266