expo-native-firebase icon indicating copy to clipboard operation
expo-native-firebase copied to clipboard

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

Open shubhamdeol opened this issue 5 years ago • 5 comments

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

shubhamdeol avatar Dec 06 '18 08:12 shubhamdeol

Is this strictly an Android error?

EvanBacon avatar Jan 04 '19 07:01 EvanBacon

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 .

imjared avatar Jan 04 '19 07:01 imjared

@EvanBacon I haven't tried on ios yet

shubhamdeol avatar Jan 04 '19 12:01 shubhamdeol

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

gusmattos1 avatar Feb 05 '19 19:02 gusmattos1

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

EvanBacon avatar Feb 05 '19 19:02 EvanBacon