im doing a personal project, and I got some issues finishing up register and login form with firebase. I am using Vuejs and TS and its throwing me this error. The part where is email saved as txtEmail.value and txtPassword.value thorws the error. Here is a snippet:
const txtEmail = document.getElementById('email');
const txtPassword = document.getElementById('psw');
const btnLogin = document.getElementById('login');
const btnSignUp = document.getElementById('register');
const btnLogout = document.getElementById('logout');
btnLogin.addEventListener('click', e => {
const email = txtEmail.value;
const pass = txtPassword.value;
const auth = firebase.auth();
//Sign in
const promise = auth.signInWithEmailAndPassword(email, pass);
promise.catch(e => console.log(e.message));
});