EvanBacon / expo-native-firebase

🔥 Native Firebase Expo App (iOS, Android) Demo for Firestore, Notifications, Analytics, Storage, Messaging, Database 🚨
211 stars 41 forks source link

Unable to resolve "expo-firebase-auth" from ./pathToNodeModules/expo-firebase-app/src/utils/getModuleInstance #13

Open shubhamdeol opened 5 years ago

shubhamdeol commented 5 years ago

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

This repo: https://github.com/shubhamdeol/detachedExpo.git

EvanBacon commented 5 years ago

Is this strictly an Android error?

imjared commented 5 years ago

I experienced this error when I tried to run on iOS sim.

On Thu, Jan 3, 2019 at 21:34 Evan Bacon notifications@github.com 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 .

shubhamdeol commented 5 years ago

@EvanBacon I haven't tried on ios yet

gusmattos1 commented 5 years ago

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

EvanBacon commented 5 years ago

Working on this issue today. Install every library, then only include the native libraries you want to use.