Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

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

Open
shubhamdeol opened this issue Dec 6, 2018 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@shubhamdeol
Copy link

shubhamdeol commented Dec 6, 2018

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
Copy link
Owner

Is this strictly an Android error?

@EvanBacon EvanBacon self-assigned this Jan 4, 2019
@EvanBacon EvanBacon added the bug Something isn't working label Jan 4, 2019
@imjared
Copy link

imjared commented Jan 4, 2019 via email

@shubhamdeol
Copy link
Author

@EvanBacon I haven't tried on ios yet

@gusmattos1
Copy link

gusmattos1 commented Feb 5, 2019

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
Copy link
Owner

EvanBacon commented Feb 5, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants