Error Starting SPIFFS

There is a problem running a simple SPIFFS file system code on different versions of the Arduino IDE, as code shown below. In Arduino IDE version 1.8.4, works fine. No longer version 1.8.9, can not run. ESP8266 IDE Arduino version 1.8.9.

#include <FS.h>   

void setup() {
  Serial.begin(115200);
  Serial.println();
  Serial.println("Init...");
  Serial.println();

  // Always get ERROR on init SPIFFS
  if (!SPIFFS.begin()) {
    Serial.println("SPIFFS.begin error...");
  } else {
    Serial.println("SPIFFS.begin OK!");
  }
}

https://arduino.stackexchange.com/questions/66441/error-starting-spiffs

It nedded to set Tools -> Flash size 4M (1M SPIFFS)

It works now!!

thanks