Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: While trying to resolve module firebase #184

Open
affan00733 opened this issue Mar 26, 2023 · 2 comments
Open

Error: While trying to resolve module firebase #184

affan00733 opened this issue Mar 26, 2023 · 2 comments

Comments

@affan00733
Copy link

Firebase package is being installed irrespective of it getting the error of Error: While trying to resolve module firebase. This has been occurred in the initialisation of the project.

  • Tried to upgrade the firebase package but it didn't worked

Logs :

error: Error: While trying to resolve module firebase from file /Users/afaanansari/Desktop/gsoc/Go-social/config/config.js, the package /Users/afaanansari/Desktop/gsoc/Go-social/node_modules/firebase/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/firebase/index. Indeed, none of these files exist:

  • /Users/afaanansari/Desktop/gsoc/Go-social/node_modules/firebase/index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • /Users/afaanansari/Desktop/gsoc/Go-social/node_modules/firebase/index/index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    at DependencyGraph.resolveDependency (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/node-haste/DependencyGraph.js:272:17)
    at Object.resolve (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/lib/transformHelpers.js:177:21)
    at Graph._resolveDependencies (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:432:35)
    at Graph._processModule (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:218:38)
    at async Graph._addDependency (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:314:20)
    at async Promise.all (index 11)
    at async Graph._processModule (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:263:5)
    at async Graph._addDependency (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:314:20)
    at async Promise.all (index 2)
    at async Graph._processModule (/Users/afaanansari/Desktop/gsoc/Go-social/node_modules/metro/src/DeltaBundler/Graph.js:263:5)

Sample attachments :

image

image

@affan00733
Copy link
Author

As I am applying this project for GSOC 2023 so , i can address this issue

@utopian-monkey
Copy link

i have solved this in #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants