The web editor doesnt compile

im using esp8266 nodemcu esp12-E the port was detected too, but it shows 'compilation failed please report this issue on our forum' i tried to delete the thing and again made it still doesnt work.

some hours ago the program compiled and worked too, but now the web editor doesnt compile it the code is:-

/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
Arduino IoT Cloud

Arduino IoT Cloud Variables description

The following variables are automatically generated and updated when changes are made to the Thing

CloudLight led;

Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
which are called when their values are changed from the Dashboard.
These functions are generated with the Thing and added at the end of this sketch.
*/

#include "thingProperties.h"

void setup() {
// Initialize serial and wait for port to open:
Serial.begin(9600);
pinMode(2,OUTPUT);
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);

// Defined in thingProperties.h
initProperties();

// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);

/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}

void loop() {
ArduinoCloud.update();
//Write your code here
}

void onLedChange() {
if(led == 1){
digitalWrite(2,HIGH);
}
else{
digitalWrite(2,LOW);
}
}

Hi @rv2442. I'm sorry to hear the web editor is giving you troubles. Are you still having the problem? I just tried a compilation for that board and didn't have an problem.

The error message you shared is not very specific . I'm wondering if there is any other output that might provide more clues to the problem? Below are the general instructions for getting the full compilation error output. It's possible that they are not applicable in this particular situation, but worth a try anyway:

  1. When you encounter an error, you'll see a button that looks like two pieces of paper at the top right corner of the black console pane below the Arduino Web Editor's sketch pane. Click that button.
  2. Open a forum reply here by clicking the Reply button.
  3. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  4. Press Ctrl+V. This will paste the compilation output into the code block.
  5. Move the cursor outside of the code tags before you add any additional text to your reply.
  6. Click the Reply button to post the output.

I will share a screen recording soon

After a couple days when I logged in again the errors I was getting went away , I don't know how but that good news for me thank for helping.