Node mcu doesn't connect with wifi when servos are used

I want to use two led’s and a servo motor with blynk.When the servo motor is in the locked position,the red light should be on,but when the servo motor is in the open position,the green led should turn on.
I want to turn this close/open using a button on the blynk app,but when I upload my code,it doesn’t connect and if I try a basic code,one that just connects the board to wifi and blynk,it works(an I can turn thins on/off using the digital pins)

Here is my code: https://pastebin.com/0XM5nNSE

Might be my code,I don’t know.Tried swapping pins and still nothing.

You should start by reading this:


Pete.