Robson lost the opening set 6-1 and later in the second set Erakovic had a chance to serve for the match. However, Robson fought back and forced a decider with a 7-5 success, before going on to book her place in round four with a 6-3 win.
However, the 19-year-old Brit has conceded that there was a time in the match were she had been "really struggling".
"I was getting my butt kicked basically," she told BBC Sport. "I was really struggling to return her serve.
"I just tried to work as hard as possible and stick with it until she started to get nervous and that's what happened."
Before today, Robson had never reached the last 16 at SW19.