JointDriveMode is no longer supported

I got this this warning when I was trying with one of the Brackeys’ tutorial videos. It shoed:
"UnityEngine.JointDriveMode is obselete. : ‘JointDriveMode is no longer supported’ ".
How to solve this error ?

Yes. The method is no longer supported!
What to try?
Comment out the codes that use the method and you should be just fine.