I did a research but found that problem only in node.js context, or react context but from a long time ago, and guys say that upgrading their firebase helped. Mine was installed just last month.
Basically I'm using React with firebase api, and I this code:
firebase.auth().signInWithEmailAndPassword('an email', 'a password);
Throws the following error: TypeError: WEBPACK_IMPORTED_MODULE_2__firebase.a.auth is not a function
Of course I'm importing firebase:
import firebase from '../../firebase';
All the other firebase commands work just fine.
Has anyone had an experience with that problem using react.js ?
Thanks a lot in advance