I'm trying to creat a login with react and firebase. I've been following a tutorial, the problem is that this code:
const handleLogin = useCallback(
async event => {
event.preventDefault();
const { email, password } = event.target.elements;
try {
await firebaseConfig.auth().signInWithEmailAndPassword(email.value, password.value);
history.push("/citas")
} catch (error) {
alert(error);
}
},
[history]
);
is giving me this error:
ReferenceError: Can't find variable: regeneratorRuntime
I don't find any solution as I don't know what it means. Any ideas?