typescript - “AngularFireAuth”类型上不存在属性“createUserWithEmailAndPassword”
问题描述
我收到一个错误,即“AngularFireAuth”类型上不存在属性“createUserWithEmailAndPassword”。你能告诉我我会做什么吗?
import { Injectable } from "@angular/core";
import { AngularFireAuth } from "@angular/fire/auth";
@Injectable({
providedIn: "root",
})
export class AuthService {
constructor(private auth: AngularFireAuth) {}
signUp(email: string, password: string) {
return this.auth.createUserWithEmailAndPassword(email, password);
}
}
解决方案
推荐阅读
- python - 在 discord.py 中重置命令的冷却时间
- c# - 二维激光雷达扫描中的集群比较
- javascript - 如何在 JSON 格式的对象数组中查找值的最大出现次数(最高计数)?
- aws-lambda - 创建后如何构建 terraform 代码以获取 Lambda ARN?
- c# - XPath 查找在其间跳过未知层数的元素
- java - 如何在 Hibernate 投影中映射嵌套集合
- html - 如何使用 xpath 通过搜索该元素旁边的文本来定位该元素
- c# - Unity c# - 在 VN 风格游戏中管理角色精灵/图像
- javascript - 如何使用 jQuery 上传多个 PDF 文件?
- html - 如果太大,将 div 的内容分成多列