Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase AngularFireAnalytics不';t在DebugView中记录事件_Firebase_Angularfire2_Firebase Analytics - Fatal编程技术网

Firebase AngularFireAnalytics不';t在DebugView中记录事件

Firebase 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&

我已经按照说明进行了操作,并将DEBUG_MODE设置为true,安装了扩展,但无论如何都无法在DebugView中看到任何事件。在开发工具中,没有任何对分析的POST请求,只有一些可以访问

存储库:

我还尝试在index.html中添加SDK。和DebugView日志工作,将请求发布到。存在

package.json

"@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
,如本文所述: