Go-social icon indicating copy to clipboard operation
Go-social copied to clipboard

Error: While trying to resolve module `firebase`

Open affan00733 opened this issue 2 years ago • 2 comments

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 avatar Mar 26 '23 07:03 affan00733

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

affan00733 avatar Mar 26 '23 07:03 affan00733

i have solved this in #188

utopian-monkey avatar Apr 04 '23 14:04 utopian-monkey