Firebase authentication using React app failing with 'Cannot read property 'prototype' of undefined' #11391
Unanswered
sponesta-root
asked this question in
Q&A
Replies: 1 comment
-
has anyone able to crack this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using Firebase for SigninWithPhone functionality.
Following is code snippet
import React, { useState } from 'react';
import {View, Text, TextInput, Button} from 'react-native'
import firebase from 'firebase/app';
import auth from './firebaseConfig'
import RecaptchaVerifier from 'firebase/auth'
import styles from './assets/styles'
const Login = () => {
// Inputs
const [mynumber, setnumber] = useState("");
const [otp, setotp] = useState('');
const [show, setshow] = useState(false);
const [final, setfinal] = useState('');
Below is the error
TypeError: Cannot read property 'prototype' of undefined, js engine: hermes
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException
Firebase version used in package Json "firebase": "^10.1.0",
Using expo to run this on mobile
Beta Was this translation helpful? Give feedback.
All reactions