While working with Firebase and React, I encountered an issue where I needed to convert an anonymous account to a permanent one. I followed the instructions in the Firebase documentation but encountered an error message stating that the function could not be used as it was undefined.
Here is the code snippet:
let credential = firebase.auth.EmailAuthProvider.credential(email, pass)
The error message displayed was:
Uncaught TypeError: Cannot read property 'credential' of undefined
I am seeking assistance from someone who can help me resolve this problem.
PS. The version of Firebase in my package.json file is "firebase": "^4.5.0"