I'm trying to push data using react and firebase realtime database. My setup works fine for reading and updating data but it fails when I try to push.
This is the relevant section of code that fails
try {
const newReference = database().ref('/testUsers').push();
console.log('Auto generated key: ', newReference.key);
} catch (error) {
console.log('Not able to push', error);
}
It throws this error:
[ReferenceError: Property 'Proxy' doesn't exist]