Currently, I am working on a project using Angular and Firebase. However, in the auth.service.ts file, Visual Studio Code is not recognizing the imports for auth and User.
import { auth } from 'firebase/app';
import { User } from 'firebase';
import { AngularFireAuth } from '@angular/fire/auth'
@Injectable()
export class AuthService {
public user:User;
constructor(public afAuth: AngularFireAuth) { }
async login( email:string, password:string){}
register(){}
logout(){}
getCurrentUser(){}
}
The issue arises with these lines:
import { auth } from 'firebase/app';
import { User } from 'firebase';
I could really use some help resolving this problem. These are the errors that I am encountering:
The error message 'auth' is declared but its value is never read.ts(6133) Module ""../../../../node_modules/firebase"" has no exported member 'auth'. Did you mean to use 'import auth from "../../../../node_modules/firebase"' instead?ts(2614).'
Furthermore, there is an error with importing User where it states: import User Module '"../../../../node_modules/firebase"' has no exported member 'User'. Did you mean to use 'import User from "../../../../node_modules/firebase"' instead?ts(2614).