Home > Net >  Module not found: Can't resolve firebase.js
Module not found: Can't resolve firebase.js

Time:10-12

Please check the images of my vs code editor I don't know what's going on why am I getting the error

CodePudding user response:

I think you have to put this instead as I see your project tree:

import db from "../firebase";

CodePudding user response:

Apparently there are some problems that i was also facing in firebase v9.1.2. You can downgrade to v8.6.2 and that is how i also got rid of these errors. Just paste the below code snippet in your package.json file in place of firebase module. And Google also made a number of changes when firebase v9 was released. I would highly recommend you to see the documentation as it will be the most helpful resource. FIREBASE V9 Documentation

"firebase": "8.6.2"
  • Related