0

I have been facing a weird error which is that I cannot import firebase, I tried compat, re-installing, etc.

If you know about it, please help me...

import firebase from 'firebase';
//import * as firebase from 'firebase/app';
//import firebase from 'firebase/app';

all of above does not work

the error is Module not found: Can't resolve 'firebase'

my firebase version is 9.1.2

Comments
  • 1
    Welcome to stack overflow, we're a friendly bunch.

    Don't even know what language you're in, never mind about firebase.
  • 2
  • 0
    Have you tried turning it off and on again?
  • 0
    I remember that there was a solution for this on internet
  • 1
    @petergriffin for once I agree with you and think you're being entirely reasonable.

    What is the world coming to?
  • 1
    import firebase from 'firebase/app';

    Also check if you actually installed firebase :D
    npm install firebase
Add Comment