A quick workaround I found here:
is uninstalling the ESP board then installing an older version. 3.0.2 worked fine with me