Answers for "Module not found: Can't resolve 'firebase' in"

0

module not found: Can't resolve 'firebase'

import firebase from "firebase/compat/app";
import "firebase/compat/auth"
import "firebase/compat/firestore"

// add these import ^^
Posted by: Guest on September-07-2021
1

Firebase deploy error - Cannot find module 'firebase'

Figured out the solution. I hadn't installed the firebase module in the functions folder but had included it in the parent folder of functions. I went into functions and ran npm install --save firebase and the deploy was successful.
Posted by: Guest on February-07-2020
0

Module not found: Can't resolve 'firebase'

import { initializeApp } from 'firebase/app';

const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);
Posted by: Guest on October-30-2021
7

Can't resolve 'firebase/app' in

npm install firebase
Posted by: Guest on July-31-2020

Code answers related to "Module not found: Can't resolve 'firebase' in"

Browse Popular Code Answers by Language