Reputation: 107
I just set up firebase with my react native expo code and downloaded everything (I think) but an error keeps popping up Building JavaScript bundle: error ERROR 16:09 Unable to resolve module ./prebuilt.rn-bdc79115. if anyone can help that would be great
Upvotes: 1
Views: 1720
Reputation: 328
If someone runs into that, it happened to me because I installed firebase with npm while using expo instead of expo install firebase.
expo install firebase
After that make sure your import on the project are correct, instead of
import "@firebase/auth";
for example youll need
import "firebase/auth";
And the main import of firebase should be
import firebase from 'firebase/app';
After all of that, delete node modules completly,
run npm install
again, ofc couse with the new package json with the expo installation of firebase, and go ahead and start the project again with npm start
Upvotes: 1