Error from basic Servo Sweep example

Try the traditional IT solution. Delete and reinstall the Arduino IDE.

...R