expo-native-firebase
expo-native-firebase copied to clipboard
Unable to resolve "expo-firebase-auth" from ./pathToNodeModules/expo-firebase-app/src/utils/getModuleInstance
Getting this error, even though I am not using expo-firebase-auth anywhere. I only want to use firebase analytics. I do not want to use all the firebase packages.
Please check below repo, which I freshly created, to recreate the bug.
Thank You
Is this strictly an Android error?
I experienced this error when I tried to run on iOS sim.
On Thu, Jan 3, 2019 at 21:34 Evan Bacon [email protected] wrote:
Is this strictly an Android error?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EvanBacon/expo-native-firebase/issues/13#issuecomment-451370936, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgC0yS1UxM3TCBKQhKiHc0po3bY0Ur2ks5u_wQVgaJpZM4ZGBG5 .
@EvanBacon I haven't tried on ios yet
try this:
Go to -> node_modules/expo-firebase-app/src/utils/getModuleInstance.js
and comment ou all the ones you are not using, like this;
`const FirebasePackages = { get analytics() { return require('expo-firebase-analytics').default; },
get auth() { return require('expo-firebase-auth').default; },
// get config() { // return require('expo-firebase-remote-config').default; // },
get crashlytics() { return require('expo-firebase-crashlytics').default; },
// get database() { // return require('expo-firebase-database').default; // },`
*** leave the last ( get utils ) as it is
Working on this issue today. Install every library, then only include the native libraries you want to use.