Firebase AngularFireAnalytics不';t在DebugView中记录事件
我已经按照说明进行了操作,并将DEBUG_MODE设置为true,安装了扩展,但无论如何都无法在DebugView中看到任何事件。在开发工具中,没有任何对分析的POST请求,只有一些可以访问 存储库: 我还尝试在index.html中添加SDK。和DebugView日志工作,将请求发布到。存在 package.jsonFirebase AngularFireAnalytics不';t在DebugView中记录事件,firebase,angularfire2,firebase-analytics,Firebase,Angularfire2,Firebase Analytics,我已经按照说明进行了操作,并将DEBUG_MODE设置为true,安装了扩展,但无论如何都无法在DebugView中看到任何事件。在开发工具中,没有任何对分析的POST请求,只有一些可以访问 存储库: 我还尝试在index.html中添加SDK。和DebugView日志工作,将请求发布到。存在 package.json "@angular/core": "~10.0.14", "@angular/fire": "^6.0.2&
"@angular/core": "~10.0.14",
"@angular/fire": "^6.0.2",
"firebase": "^7.13.1"
app.module.ts
import { AngularFireAnalyticsModule, DEBUG_MODE } from '@angular/fire/analytics';
import { AngularFireModule } from '@angular/fire';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ProfileComponent } from './profile/profile.component';
import { RulesComponent } from './rules/rules.component';
import { environment } from '../environments/environment';
@NgModule({
declarations: [
AppComponent,
ProfileComponent,
RulesComponent
],
imports: [
AngularFireModule.initializeApp(environment.firebase),
AngularFireAnalyticsModule,
BrowserModule,
AppRoutingModule,
],
providers: [
{ provide: DEBUG_MODE, useValue: true },
],
bootstrap: [AppComponent]
})
export class AppModule { }
提前感谢。角度火力似乎是一个已知问题,您可以尝试使用
@Angular/Fire^6.0.0
,如本文所述: