sampl / firefly

Web app boilerplate for beginners based on Firebase and React 🔥
http://getfirefly.org/
234 stars 42 forks source link

npm start fails Module not found: Can't resolve 'firebase/app' in '/Users/reda/Sites/firefly/src' #165

Closed jmuidesign closed 4 years ago

jmuidesign commented 5 years ago

After following all the instructions of the documentation when launching the application with npm run start I get the following error message: "./src/index.js Module not found: Can not resolve 'firebase / app' in '/ Users / reda / Sites / firefly / src' "

jnelson180 commented 5 years ago

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2.

Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too).

Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

bilalmalik4321 commented 4 years ago

This may start because firebase is placed in the .gitignore file, it has some information that should only be accessed by the persons pushing onto the repository. In this case you need to write your own firebase.js file.

patbi commented 4 years ago

Thanks @jnelson180

Carlos20001 commented 3 years ago

I am having the same isue too and it is still not helping me out now. I npm installed firebase and still get the same result ./src/firebase/config.js Module not found: Can't resolve 'firebase/app' in 'C:\Users\Carlos R\Desktop\firegram-starter-files\firegram\src\firebase'

yusluv1234 commented 3 years ago

please what can i do to resolve this

./src/firebase/firebase.utils.js Module not found: Can't resolve 'firebase/app' in 'C:\Users\USER\Desktop\REACT PROJECT\easybanking\src\firebase'

shrikantpandey13 commented 3 years ago

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2.

Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too).

Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

It worked. Thank you for your contribution

corps01 commented 3 years ago

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2.

Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too).

Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

this worked for me thank you!

ShivamTyagi12345 commented 3 years ago

shd i run this command inside my "nodemodules" directory?

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2. Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too). Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

this worked for me thank you!

shantanu16101998 commented 3 years ago

this worked for me thank you!

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2.

Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too).

Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

pimggwp commented 3 years ago

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2. Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too). Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

It worked. Thank you for your contribution

This worked for me Thank youuuu.

vaibhav0704 commented 3 years ago

If you check your node_modules folder and see that firebase isn't in it, try running npm i firebase@6.0.2.

Gprc is a dependency of firebase and there was a release of it awhile back that breaks on install if you're using Node 12 (or maybe some other versions, too).

Installing firebase@6.0.2 or higher will probably get your issue resolved if you're using Node 12 and your npm i is breaking on installing gprc.

I have firebase 8.8.0 (latest) in package.json dont know why firebase is still not there in the node_modules

Bhagyeshpro commented 3 years ago

what about if we have firebase over there I have it.

salma-py97 commented 3 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

himanksuiwala commented 3 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

Thanks Man this worked, it is having issue in its latest build.

Adelndf commented 3 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

Thank u so much i had this issue for 2 days and now it fixed .. <3

JackXN commented 3 years ago

Awesome!!!

Harshguglani commented 3 years ago

I have uninstalled the previous version, and installed the npm i firebase@^8.10.0, but i am still facing issue.

braga-hub commented 3 years ago

Im having issues and I have firebase in my node modules but I don't have firebase-tools even that I "npm install firebase-tools" I still don't have them and I still have this error "./src/firebase.js Module not found: Can't resolve 'firebase' in 'C:\Users\ermis braka\first-clone\disney-clone\src' "

Harshguglani commented 3 years ago

Im having issues and I have firebase in my node modules but I don't have firebase-tools even that I "npm install firebase-tools" I still don't have them and I still have this error "./src/firebase.js Module not found: Can't resolve 'firebase' in 'C:\Users\ermis braka\first-clone\disney-clone\src' "

perform these step Remove your node_modules directory and your package-lock.json file. Run npm cache clean. Run npm install again. Run npm i

Royal6969 commented 3 years ago

@jnelson180 guy amazing !! how a previous version like v8 can works with no issues better than the v.9 ??

pro-Sharad commented 2 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

Thank u so much i had this issue for 2 days and now it fixed .. <3

Thank you it worked

marufjs commented 2 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

Thanks. it worked.

Aman-Paul commented 2 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

thanks, I was stuck with this problem for more than a week and, now it is solved thanks a lot.

manvi0308 commented 2 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

This worked for me as well.

Alexchevair commented 2 years ago

Guys, uninstall the firebase version that you have in package.json with npm uninstall firebase and install this version instead npm i firebase@^8.10.0

Ran this directly in my \react folder. It worked! Thanks!

haileicristina commented 2 years ago

Pessoal, desinstale a versão do firebase que você tem no package.json npm uninstall firebasee instale esta versãonpm i firebase@^8.10.0 [salma-py97] Grate.! For me its ok

Sova-Anton commented 1 year ago

Pessoal, desinstale a versão do firebase que você tem no package.json npm uninstall firebasee instale esta versãonpm i firebase@^8.10.0 [salma-py97]

Thank you!