I’m trying to import Angular firebase into a project
import * as firebase from "firebase"
falls into error
Cannot find module 'firebase' or its corresponding type declarations .ts(2307)
and I ran the command to install @angular/firebase:
npm I firebase @angular/fire --save
what I can do?
2
Answers
you can write import * as firebase from 'firebase/compat'; adn this work good
As stated here after the configuration on Firebase Cloud you need:
In your app module:
In your component: