Ionic 从web SDK更改为模块化SDK @firebase/auth:验证(9.23.0):内部Assert失败:需要类定义

eyh26e7m  于 2023-08-01  发布在  Ionic
关注(0)|答案(1)|浏览(106)

更改为模块化SDK实现后出现以下错误。我应该相应地改变所有方法,并且没有任何导入/compat/IDE的错误,用ionic server编译所有工作正常,没有错误。程序运行良好只是angularfire不工作在所有。
真的需要希望,因为我完全检查了所有,完全没有想法是什么可能的原因。

@firebase/auth: Auth (9.23.0): INTERNAL ASSERTION FAILED: Expected a class definition after changed from web SDK implementation to modular SDK.

Error: Uncaught (in promise): Error: INTERNAL ASSERTION FAILED: Expected a class definition
Error: INTERNAL ASSERTION FAILED: Expected a class definition
    at U (index-e3d5d3f4.js:520:11)
    at j (index-e3d5d3f4.js:531:9)
    at _t (index-e3d5d3f4.js:1742:5)
    at index-e3d5d3f4.js:2663:59
    at Generator.next (<anonymous>)
    at i (asyncToGenerator.js:3:1)
    at C (asyncToGenerator.js:22:1)
    at asyncToGenerator.js:27:1
    at new _ (zone.js:1340:25)
    at asyncToGenerator.js:19:1
    at P.invoke (zone.js:412:30)
    at Object.onInvoke (core.mjs:26321:33)
    at P.invoke (zone.js:411:56)
    at P.run (zone.js:166:47)
    at zone.js:1315:38
    at P.invokeTask (zone.js:446:35)
    at Object.onInvokeTask (core.mjs:26308:33)
    at P.invokeTask (zone.js:445:64)
    at P.runTask (zone.js:211:51)
    at Ue (zone.js:635:39)
    at P.invokeTask (zone.js:532:25)
    at P.ne.useG.invoke (zone.js:517:52)
    at B.c.args.<computed> (zone.js:2422:36)

字符串
环境“@angular/fire”:“^7.6.1”,“firebase”:“^9.23.0”
离子:
Ionic CLI:7.1.1(/usr/local/lib/node_modules/@ionic/cli)Ionic Framework:@ionic/angular 7. 2. 0 @angular-devkit/build-angular:16. 1. 5 @angular-devkit/schematics:16.1.5@angular/cli:16.1.5@ionic/angular-toolkit:10.0.0
电容器:
电容器CLI:5.2.2@capacitor/android:5.2.2 @电容器/铁芯:5.2.2 @电容器/ios:5.2.2
实用程序:
Cordova-res:未安装全局本地运行:1.7.2
系统:
NodeJS:v18.12.1(/usr/local/bin/node)npm:9.8.1操作系统:macOS未知

hiz5n14c

hiz5n14c1#

通过删除应用的错误函数解决。this.auth.setPersistence()
希望在将来它能更准确地跟踪和捕获不适当的错误。

相关问题