Arduino MKR ZERO blink sketch only works when uploaded from online editor

I actually tried to upload a simple sketch that prints to serial:

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  
  Serial.println("abc");
  
}

Again the sketch works only when uploaded from Arduino Create (returns "abc" on Serial) and although successfully uploaded from IDE doesn't return anything on Serial.