react-static: Example: Firebase - Module not found: Can't resolve './firebase
Usin the latest react-static to build with react-create
command with Select a template below... firebase-auth
. after npm run start
this is what I got…
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 55 (2 by maintainers)
Guys, uninstall the firebase you have in package.json with this
npm uninstall firebase
and install this version insteadnpm i firebase@^8.10.0
I am having the same issue: used: -create-react-app files: -src/app.js -src/firebase.js import in app.js: -import firebase from ‘./firebase’; error: “/src/firebase.js Module not found: Can’t resolve ‘firebase’”
**Figured it out. Even though I have installed firebase tools, I still needed to install firebase.
npm i firebase
fixed it.Yeah that worked for me. ty
This solution worked for me, however, I typed
npm install firebase@8.10.0
removing the ^Thank you. I had the same problem. I had firebase tools but I realised I didn’t have firebase. The solution would be
npm i firebase
oryarn add firebase
i think firebase 9 is having a problem with react 17, anyways this worked for me, thank you so much
Don’t necro an old issue and without code or anything we can’t even begin to help you.
Thanks for this!!! Lots of Love(♥);
It worked for me. Thank youuuu!!!
This is absolute solution. Thank you very much !
This answer was what worked for me too, I’ve spent two hours checking everywhere on the internet to no avail until I found this answer. Thank you 🙏
THis finally worked!!! Thank you very much!
Thanks a lot. not sure how but it worked.
this worked for me too. thanks!
Try this ‘npm i firebase@6.0.2’ or higher version of firebase . It should work.
in my case, I use yarn instead of npm . then fixed it