-
Notifications
You must be signed in to change notification settings - Fork 986
Closed
Description
Operating System
macOS Sonoma 14.4.1
Browser Version
Expo 50.0.14 | iOS 17.4
Firebase SDK Version
10.11.0
Firebase SDK Product:
Auth
Describe your project's tooling
Expo
Describe the problem
Unable to resolve "./index.shared" from "node_modules/@firebase/auth/dist/index.rn.d.ts"
Navigating through VSC I can view the file by the import correctly.
Even after commenting the line export * from './index.shared'; the error log indicates the next line export { PhoneAuthProvider } from './src/platform_browser/providers/phone'; as also - unable to resolve file.
This happens on iOS both Simulator and iPhone and on Android.
Steps and code to reproduce issue
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { initializeAuth, getReactNativePersistence } from "firebase/auth";
import ReactNativeAsyncStorage from "@react-native-async-storage/async-storage";
// import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// const analytics = getAnalytics(app);
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage),
});
export const db = getFirestore(app);