Error using vif function

It gives the error:
Error in usemethod(“vcoc”) :
no applicable method for ‘vcov’ applied to an object of class “data.frame”
And I do the same steps and procedures as the instructor doing in video lesson .
Pls help me to solve this Issue